48

Cancelling Nested Kotlin Coroutines With CoroutineScope

 4 years ago
source link: https://codinginfinite.com/android-kotlin-coroutinescope-example/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
In this article we'll see how we can simply cancel the parent coroutine with CoroutineScope and cancel all the inner children Jobs or async tasks as well.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK