What happens if I try to `launch` on a `CoroutineS...
# coroutines
e
What happens if I try to
launch
on a
CoroutineScope
that has been cancelled? Does it throw an exception, or does it just get swallowed?
s
It'll just return a cancelled Job and won't run the coroutine.
🙏 1
I wouldn't say that anything gets "swallowed" really. Cancellation of coroutines is cooperative and normal. Certain things might use CancellationException to signal the cancellation, but it's really a normal way to stop the task, not an error.