tubeshowcase●1,671,863 videos♡ My collection 0
← Learn to Code

Learn to Code54:01

Structured Concurrency: Hierarchical Cancellation & Error Handling • James Ward • GOTO 2024

GOTO Conferences ↗

From the creator

This presentation was recorded at GOTO Chicago 2024. #GOTOcon #GOTOchgo https://gotochgo.com James Ward - Principal Developer Advocate at AWS @JamesWard ORIGINAL TALK TITLE Structured Concurrency: Managing the Hierarchical Cancellation & Error Handling RESOURCES https://bsky.app/profile/jamesward.com https://twitter.com/_JamesWard https://www.linkedin.com/in/jamesward Links https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf https://github.com/jamesward/easyracer ABSTRACT There are many approaches to concurrency all with different ways of handling cancellation and errors. Structured Concurrency is an approach that makes typical fan-out and fan-in use cases like races, easier to manage especially when sub-tasks need to be canceled or can produce errors. This talk will introduce the concept of Structured Concurrency and compare different approaches (with and without Loom) in Java, Kotlin, and Scala. Whether you are new to concurrency or familiar with the typical approaches, you will learn about new ways of tackling the complexities and how they vary across languages and frameworks. [...] TIMECODES 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 Sc

Published 2025-07-04 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code