Feb 26, 2023
Thank you for your article; I learned something new today.
This is indeed the safer way to handle CancellationException in coroutines.
It turns out the Flow.catch() operator does a similar check internally, which is a good indication this is needed.