Structured Concurrency: Hierarchical Cancellation & Error Handling • James Ward • GOTO 2024
Автор: GOTO Conferences
Загружено: 2025-07-04
Просмотров: 3228
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
/ _jamesward
/ jamesward
Links
https://homepages.cwi.nl/~storm/teach...
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 Scenario 7
48:03 Wrap-up
50:05 Q&A
53:42 Outro
Download slides and read the full abstract here:
https://gotochgo.com/2024/sessions/3339
RECOMMENDED BOOKS
Markus Eisele & Natale Vinto • Modernizing Enterprise Java • https://amzn.to/3EsEtZ3
Kevlin Henney & Trisha Gee • 97 Things Every Java Programmer Should Know • https://amzn.to/3kiTwJJ
Dave Thomas & Andy Hunt • The Pragmatic Programmer • https://amzn.to/3azvUy3
Joshua Bloch • Effective Java • https://amzn.to/3ygmQJt
Mark Heckler • Spring Boot: Up & Running • https://amzn.to/3c0NK19
Laurentiu Spilca • Spring, Start Here • https://amzn.to/3L6Sv6c
Thomas Vitale • Cloud Native Spring in Action (available soon) • https://amzn.to/3kLu1ns
Venkat Subramaniam • Programming Kotlin • https://amzn.to/2MIC8D1
https://bsky.app/profile/gotocon.com
/ gotocon
/ goto-
/ goto_con
/ gotoconferences
#StructuredConcurrency #Concurrency #ProjectLoom #JavaLoom #Loom #Java #Kotlin #Scala #ScalaOx #ScalaZIO #JavaJox #KotlinCoroutines #KotlinSplitties #JamesWard
CHANNEL MEMBERSHIP BONUS
Join this channel to get early access to videos & other perks:
/ @goto-
Looking for a unique learning experience?
Attend the next GOTO conference near you! Get your ticket at https://gotopia.tech
Sign up for updates and specials at https://gotopia.tech/newsletter
SUBSCRIBE TO OUR CHANNEL - new videos posted almost daily.
https://www.youtube.com/user/GotoConf...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: