Coroutines: Concurrency in Kotlin

Author: Dave Leeds
Published At: 2024-07-31T00:00:00
Length: 30:22

Summary

Description

In this presentation, I give an overview of coroutines in Kotlin, including the basics of coroutines, how they can be used for concurrency and parallelism, and how structured concurrency helps ensure coroutines are cleaned up in response to cancellations and exceptions.

The content for this presentation is largely based on chapter 20 of Kotlin: An Illustrated Guide, which you can read online here: https://typealias.com/start/kotlin-coroutines/. You can also purchase the Leanpub edition here: https://book.typealias.com.

✨ New to Kotlin? Start your journey here: https://typealias.com/start/

🚀 Get the inside scoop on everything I'm working on - join my new email newsletter!

Sign up here: https://newsletter.typealias.com/

🎞️ Chapters in this video

00:00 - Coroutine Basics

12:25 - Sequential Code

15:04 - Concurrency

18:06 - Parallelism

22:57 - Cancellation

25:53 - Partial Cancellation

27:41 - Exceptions

29:39 - The End

Translated At: 2025-03-04T05:52:42Z

Request translate (One translation is about 5 minutes)

Version 3 (stable)

Optimized for a single speaker. Suitable for knowledge sharing or teaching videos.

Recommended Videos