That is what if the cancellation happens when retu...
# coroutines
f
That is what if the cancellation happens when return is invoked
j
As I mentioned in the previous message, cancellation is cooperative and cannot happen during a return. But cancellation could happen during a suspend function call that is made in the
return
argument, such as
return mySuspendFun()
. What I said in the previous message still holds: use a `try`/`finally` block