<@U2E974ELT> oh ok, I didn't know the behavior of ...
# coroutines
b
@elizarov oh ok, I didn't know the behavior of
withContext
was different, is that difference documented?
e
Yes. In their respective docs. It is worth mentioning somewhere else, too, though
You don’t have to memorize that, through. Just note the fact that both
launch
and
async
are regular (non suspending), while
withContext
is a suspending function. All suspending functions respect the cancellation of the context they are invoked in.
b
Ah yea, that makes sense