Companion

object Companion

Functions

Link copied to clipboard
fun forFiberResumption(fiber: A_Fiber, body: Interpreter.() -> Unit): () -> Unit

Answer an AvailTask suitable for resuming the specified fiber using the specified action. If the continuation fails for any reason, then it aborts the fiber and invokes the failure continuation with the terminal throwable.

Link copied to clipboard
fun forUnboundFiber(fiber: A_Fiber, action: () -> Unit): () -> Unit

Answer an AvailTask suitable for performing activities on behalf of an unbound ExecutionState.SUSPENDEDFiberDescriptor. If the continuation fails for any reason, then it transitions the fiber to the aborted state and invokes the fiber's failure continuation with the terminal throwable.