Can I interrupt Workflow.sleep?

My question is can I interrupt a sleeping workflow? If so, how?

You can cancel the CancellationScope that wraps the sleep. Canceling the whole workflow cancels the root scope that wraps the workflow method.

If you just want to unblock the sleep, a more convenient option is to use Workflow.await:

Workflow.await(timeout, ()->interrupted);