louiscad
02/11/2018, 10:33 AMwithContext
handles cancellation before and after running its lambda?Jonathan
02/13/2018, 4:56 PMBy default, the coroutine is immediately scheduled for execution and can be cancelled while it is waiting to be executed and it can be cancelled while the result is scheduled to be processed by the invoker contextmy understanding is the correct answer to your question is "before and after"
louiscad
02/13/2018, 6:15 PMwithContext
doc (which I would have shamefully overlooked), or somewhere else (in this case, could you link it?)?Jonathan
02/13/2018, 8:57 PMwithContext
doc. https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/with-context.html