https://kotlinlang.org logo
#coroutines
Title
# coroutines
l

Lukas Lechner

08/26/2020, 7:48 AM
Hi! In a coroutine, we often want to use try-catch to catch all exceptions except
CancellationExceptions
. If we would catch
CancellationExceptions
, the Coroutine would continue to run until the next suspension point instead of cancel itself. Is there some convenience function in the stdlib that does this? Or have you written your own one?
5 Views