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

YouTube

Java Asynchronous Programming with Loom and Structured Concurrency - Tutorial

Java via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial demonstrates building asynchronous Java applications with virtual threads and the Structured Concurrency API. It covers task scopes, shutdown behavior, exception handling, timeouts, unit testing, and using ExtentLocal with scopes.

Syllabus

Intro
Two things about Virtual Threads
Writing asynchronous code
Moving asynchronous code to Virtual Threads
Introducing Loom Scopes
Live demo: a first StructuredTaskScope
Differences between Scopes and Executors
Introducing the ShutdownOnSuccess Scope
Live demo: using ShutdownOnSuccess
Exception handling
Creating a custom Scope in action
Tips to write unit tests
Live demo: handling different object types
Live demo: adding a timeout on your Scope
Using ExtentLocal instead of ThreadLocal
Live demo: using ExtentLocal in a single thread
Live demo: using ExtentLocal with scopes
Scope wrap up
Final words and outro

Taught by

Java

Reviews

Start your review of Java Asynchronous Programming with Loom and Structured Concurrency - Tutorial

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.