Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Structured Concurrency - Hierarchical Cancellation and Error Handling

GOTO Conferences via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn structured concurrency principles and implementation patterns through this comprehensive conference talk that explores hierarchical cancellation and error handling across multiple programming languages. Discover how structured concurrency simplifies fan-out and fan-in use cases, particularly for racing scenarios where sub-tasks require cancellation or error management. Explore practical approaches using Java (with and without Project Loom), Kotlin, and Scala through seven detailed scenarios that demonstrate real-world concurrency challenges. Master the fundamentals of structured concurrency concepts, examine racing patterns, and work through hands-on demonstrations using the "Easy Racer" example project. Compare different implementation strategies across languages and frameworks, including Java with Jox, Kotlin with Coroutines and Splitties, and Scala with Ox and ZIO. Understand how to handle race shutdown scenarios on both success and error conditions, and gain insights into managing complex concurrent operations with proper cancellation semantics. Benefit from live coding demonstrations, detailed scenario walkthroughs, and expert guidance on choosing the right concurrency approach for your specific use case, whether you're new to concurrent programming or looking to modernize existing concurrent code with structured patterns.

Syllabus

00:00 Intro
00:59 What is structured concurrency?
03:00 Races
06:05 Easy racer
07:27 Approaches to structured concurrency
09:34 Scenario 1
10:24 Demo
18:01 Scenario 1 continued
27:13 Scenario 2
27:34 Race shutdown on success
28:50 Race shutdown on error
29:20 Scenario 2 continued
34:20 Scenario 3
35:55 Scenario 4
40:22 Scenario 5
41:58 Scenario 6
44:44 Demo
45:50 Scenario 7
48:03 Wrap-up
50:05 Q&A
53:42 Outro

Taught by

GOTO Conferences

Reviews

Start your review of Structured Concurrency - Hierarchical Cancellation and Error Handling

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.