Hacker News new | ask | show | jobs
by mikko-apo 1039 days ago
JDK21 has structured concurrency. It works with virtual threads so the main task will be moved aside (from the OS thread) until the sub tasks finnish.

https://www.infoq.com/news/2023/06/structured-concurrency-jd...

1 comments

Yes, that's what I was referring to.