Skip to content
0:00 / 0:00

#coroutines#structuredconcurrency#coroutinescope

Coroutines Need a Scope... and That's a Good Thing!

Dave Leeds

16K subscribers • 19 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Dave Leeds

Intermediate. Assumes working knowledge.

6.8K views10 months ago1 recommendation

Programming languagesSoftware designKotlinConcurrency and parallelismDesign patterns

Dave Leeds explains the benefits of structured concurrency and why CoroutineScope is essential for managing lifecycle, cancellation, and exceptions.

Before you can create a Kotlin coroutine, you're gonna need a scope! This might seem like an inconvenience, but it's totally worth it! Coroutine scopes give us structured concurrency, and once you understand the benefits that it gives you, you'll never want to write concurrent code without it! 👉 Coroutines course: courses.typealias.com/coroutines Use promo code GLOBALSCOPE before December 31, 2025 for 30% off. 🚀 Newsletter: newsletter.typealias.com/ ✨ New to Kotlin? Start your journey here: typealias.com/start/ 📚 Chapters CoroutineScope is Good! Why We Need Scope Waiting Just Long Enough Cancelling Work Managing Exceptions Recap - Why CoroutineScope is Good Ready to Go Deeper?

Why it's here

1 person recommends this

What people say. Recommended as a clear explanation of structured concurrency and coroutine scopes in Kotlin.

u/TypeProjectionin r/Kotlin • Recommends

Coroutines need a scope... and that's a good thing!