Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 424 Bytes

structured-concurrency-example.md

File metadata and controls

15 lines (8 loc) · 424 Bytes

Example of Structured Concurrency

The output that we can see that the StructuredTaskScope canceled other subtask (throwing a InterruptedException):

Thread view of concurrency using ExecutorService:

Thread view of concurency using StructuredTaskScope:

We can not the virtual thread running with ForkJoinPool.