postExitContinuation

fun postExitContinuation(continuation: () -> Unit?)

Set the post-exit continuation. The affected fiber will be locked around the evaluation of this continuation.

Parameters

continuation

What to do after a fiber has exited and been unbound, or null if nothing should be done.


var postExitContinuation: () -> Unit? = null

An action to run after a fiber exits and is unbound.