Kotlin: Basic of Coroutines
Published in
8 min readJan 26, 2023
1. CoroutineScope
Coroutine scope is a concept in the Kotlin programming language that defines a scope for a set of coroutines. It provides a way to organize and manage the lifecycle of coroutines, and allows for the cancellation of all coroutines within the scope when necessary. The CoroutineScope
interface is typically implemented by classes such as Activity
, Fragment
, or a custom scope object, and it…