Join Slack
Powered by
Heya, I have an odd question. Can `try { } catch(e...
# coroutines
d
dniHze
12/21/2022, 3:57 PM
Heya, I have an odd question. Can
try { } catch(e: Exception) { }
inside
suspendCancellableCoroutine
break coroutine cancellation by consuming
CancellationException
? Does it also implies to coroutine adapters?
n
Nick Allen
12/21/2022, 8:04 PM
The argument of suspendCancellableCoroutine is not a suspend function. Once you get in that lambda, you are no longer calling suspend methods that might be cancelled and throw CancellationException.
4
Views
Open in Slack
Previous
Next