Module 09 of 12

Coroutines

Lessons

About This Module

Apps constantly wait on things like network calls, disk access, and timers, and they must stay responsive while they do. Coroutines are Kotlin's answer: lightweight, structured concurrency that lets you write asynchronous code in a plain, sequential style, without callback pyramids.

This module covers the core ideas: suspend functions that can pause without blocking a thread, coroutine scopes and builders such as launch and async, and dispatchers (Main, IO, and Default) that control which threads your code runs on.

Watch the lessons in order, then continue on to Flow & Concurrency.

Lessons

4 videos
01

Kotlin Coroutines Beginner Example (Android)

Walks through a first Kotlin coroutines example, ideal for getting started with the basics.

02

The Secrets of Kotlin Coroutines: Mastering Asynchronous Programming

A step-by-step tutorial on Kotlin coroutines for asynchronous programming, for beginners and experienced developers alike.

03

Kotlin Coroutines Dispatchers Explained: Main, IO, Default & Unconfined for Beginners

Explains how to control threading in your coroutines using dispatchers.

04

Mastering Coroutines in Kotlin - Complete guide

Covers the basic coroutine concepts and more in a complete guide to Kotlin coroutines.