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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore asynchronous programming in Java with this comprehensive tutorial video focusing on Loom and Structured Concurrency. Dive into virtual threads, learn to write and migrate asynchronous code, and master Loom Scopes. Follow live demonstrations on implementing StructuredTaskScope, ShutdownOnSuccess, and custom scopes. Discover techniques for exception handling, unit testing, and working with different object types. Gain insights on adding timeouts to scopes and utilizing ExtentLocal. Perfect for developers looking to enhance their Java concurrent programming skills with the latest features available in JDK 19.

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.