Advanced Coroutines
Coroutine cancellation, channels and producer-consumer patterns.
1
coroutine advanced
2Coroutine Cancellation in Kotlin
Coroutines can be cancelled cooperatively when they are no longer needed. A Kotlin example with source code and sample output.
coroutine advanced
Channels in Kotlin
Channels pass values between coroutines in a producer-consumer pattern. A Kotlin example with source code and sample output.