3 ms·
Project Loom will include structured concurrency. But most of that will come out in releases after virtual threads. If you read the JEP though, you'll see that
by Skinney 5y ago
Project Loom will include structured concurrency. But most of that will come out in releases after virtual threads.
If you read the JEP though, you'll see that Executors are auto-closable now, which means you can use try-with-resources to wait for all spawned threads to stop before continuing execution.