Lead AI-Native Products with Microsoft's Agentic AI Program
The Most Addictive Python and SQL Courses
Overview
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