interceptContinuation

override fun <T> interceptContinuation(continuation: Continuation<T>): Continuation<T>

Returns a continuation that wraps the provided continuation, thus intercepting all resumptions.

This method should generally be exception-safe. An exception thrown from this method may leave the coroutines that use this dispatcher in the inconsistent and hard to debug state.

Sources

common source
Link copied to clipboard