MENU

Fun & Interesting

Coroutines: Concurrency in Kotlin

Dave Leeds 23,882 6 months ago
Video Not Working? Fix It Now

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

Comment