Join Slack
Kotlin Tip: When you define application exceptions, don’t extend CancellationException! That causes ...
# feed
h
Halina
04/08/2024, 8:14 AM
Kotlin Tip: When you define application exceptions, don’t extend CancellationException! That causes unexpected behaviour, as subclasses of this CancellationException are not propagated, but instead, they cancel the closest coroutine. More about it here:
https://kt.academy/article/cc-cancellation#cancellationexception-does-not-propagate-to-its-parent
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by