is this allowed: `withContext(<http://Dispatchers....
# coroutines
m
is this allowed:
withContext(<http://Dispatchers.IO|Dispatchers.IO> + NonCancellable)
yes black 4
s
BUT I think there is a gotcha: if you are changing dispatcher, withContext itself is cancellable and may throw CancellationException before entering the non-cancellable block
Can anyone else confirm whether that's correct?
s
s
Thanks Simon! After reading the code that you linked to and testing out some examples, I agree with you.
👍 1