Canceling Nested Kotlin Coroutines With CoroutineScope
| | | | |

Canceling Nested Kotlin Coroutines With CoroutineScope

Coroutines are one of the 😍 nicest language features in Kotlin. They provide a rather headache-free way to use the power of concurrency in your Kotlin program. I was very excited when I started playing around with them but eventually came across a problem: what if you have nested coroutines (like a parent-child coroutine). For instance,…