--

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.

--

--

Christophe Beyls
Christophe Beyls

Written by Christophe Beyls

Android developer from Belgium, blogging about advanced programming topics.

No responses yet