whenContinuationIsAvailableDo

fun A_Fiber.whenContinuationIsAvailableDo(whenReified: (A_Continuation) -> Unit)

Ensure the specified action is invoked with this fiber's reified continuation as soon as it's available. Note that this triggers an interrupt on the fiber to ensure a timely capture of the stack.

Parameters

whenReified

What to run with the Avail continuation.