Talking Kotlin

Discussing Kotlin Coroutines with Marcin Moskała

11 snips
Oct 23, 2025
Marcin Moskała, a Kotlin consultant and author specializing in coroutines, shares insights into asynchronous programming. He distinguishes coroutines from lightweight threads, explaining their unique roles in Kotlin development. Understanding structured concurrency and its advantages is a key theme, alongside the ease of starting with coroutines versus mastering them. Marcin also delves into the intricacies of Flow and emphasizes best practices in coroutine testing, all while hinting at the exciting features within his Coroutines Mastery course.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Phoenix Branding Symbolizes Learning

  • Marcin uses a phoenix as his Coroutines Mastery brand symbolizing learning and letting old ideas die.
  • He ties the phoenix to shedding old preconceptions about threads when learning coroutines.
INSIGHT

Coroutines Are Suspensions, Not Threads

  • Coroutines are lightweight abstractions that run on top of threads and can be suspended retaining only their continuation and local state.
  • This suspension model makes millions of paused coroutines cheap compared to blocked threads which cost megabytes each.
INSIGHT

Library Adds The Powerful Coroutine Features

  • The Kotlin compiler only provides suspension support while kotlinx.coroutines supplies the powerful higher-level features developers use daily.
  • That library blends ideas from many languages to offer structured concurrency, dispatchers, flows, and advanced testing utilities.
Get the Snipd Podcast app to discover more snips from this episode
Get the app