Even inside `suspendCoroutine`? That means that bl...
# coroutines
j
Even inside
suspendCoroutine
? That means that block finished executing before the result is returned?
e
resume
invocation has to return at some moment, because it has to unwind Java stack. When exactly it returns depends on dispatcher. With a regular dispatcher it returns almost immediately, having scheduled the execution of continuation to the appropriate thread, while with
Unconfined
dispatcher it returns when the resumed coroutine reaches its next suspension point.
j
Yeah the stack part makes sense when I start to think about it