New question: Does `withContext` handles cancellat...
# coroutines
l
New question: Does
withContext
handles cancellation before and after running its lambda?
j
doc states:
By 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 context
my understanding is the correct answer to your question is "before and after"
l
Thanks @Jonathan, this confirms my intuition. Was it in
withContext
doc (which I would have shamefully overlooked), or somewhere else (in this case, could you link it?)?