What is happening to all not finished tasks (threads) after joinUntil throws TimeoutException
Sergii Chekotylo
sergii.chekotylo at gmail.com
Mon Apr 7 21:36:58 UTC 2025
Thank you for response Alan.
I have another question about closing the scope (exiting try-with-resources):
From the code in the fork() method I’ve realized that methods join()/joinUntil() not intended to be called only once inside the single scope instance. And it is aligned with my use case. But what to do with TimeoutException? Of course I can wrap joinUntil in separate try-Catch, but how to interrupt all unfinished tasks without closing the scope?
Or maybe I just wrong about usage of the scope and it is intended to be used only once?
Thanks,
Sergii
More information about the loom-dev
mailing list