jw10/06/2017, 1:15 PM
? That means that block finished executing before the result is returned?
elizarov10/06/2017, 2:13 PM
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
dispatcher it returns when the resumed coroutine reaches its next suspension point.
jw10/06/2017, 5:34 PM