Skip to content

Glossary: Kotlin Beyond the Basics

dispatcher

Also written: Dispatchers.Default, Dispatchers.IO, Dispatchers.Main

Decides which threads a coroutine runs on: `Default` for CPU work, `IO` for blocking waits on files or networks, and `Main` for the UI thread.

Where the book teaches it

Related terms

withContextcoroutine context