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

Josiah Noel josiahnoel at gmail.com
Mon Sep 4 14:45:36 UTC 2023


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?

On Mon, Sep 4, 2023, 4:02 AM Alan Bateman <Alan.Bateman at oracle.com> wrote:

> On 04/09/2023 08:55, forax at univ-mlv.fr wrote:
> > :
> > In term of design having a class that can be used directly as a concrete
> class and indirectly as an abstract class that provides support methods for
> other classes is hard to get right, because usually those two views clash
> for some feature. STS is a good example of such problem,
> As you know, one of things that we need to decide is whether to allow
> direct usage or always require it being subclassed to implement policy.
> That is bigger topic before deciding whether to allow multiple rounds of
> forking or not.
>
> -Alan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230904/c21eecb9/attachment-0001.htm>


More information about the loom-dev mailing list