Introduction
Hello, and welcome to scopes and dispatchers in Kotlin coroutines.
The scope of a coroutine is a basic way to control the lifetime of the coroutine. The dispatcher is a mechanism that determines which thread the coroutine runs on.
In this lesson, you’ll learn the following:
- The concept of scope with coroutines.
- The purpose of coroutine dispatchers.
- The properties of different available dispatchers:
Default,IO, andMain.
Ready? Let’s get started!