Calling StructuredTaskScope.join() several times inside the same scope

Alan Bateman Alan.Bateman at oracle.com
Mon Sep 4 18:58:17 UTC 2023



On 04/09/2023 15:45, Josiah Noel wrote:
> Isn't it in the name that ShutdownOnSuccess would shutdown on success? 
> The way I use it, I don't expect anything different.
>
> On JDK 20, I used ShutdownOnFailure if I wanted to call join multiple 
> times. Also I have in fact done it a bunch, so I hope this hasn't been 
> removed?
>
I'm curious why you use it this way, does this usage mechanically 
convert to create a SOS per round of forking?

-Alan


More information about the loom-dev mailing list