Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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, and Main.

Ready? Let’s get started!

See forum comments
Download course materials from Github
Previous: Use Coroutines Next: Instructions