Kotlin: Basic of Coroutines

Leo N
Level Up Coding
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…

--

--

🎓 “A person who never made a mistake never tried anything new.” — Albert Einstein