<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"> I've got an orchestration API that calls multiple downstream services and dbs. So I've got multiple sets of async tasks that go in sequence, if any should fail the whole process itself should fail. I use one SOF for all of this so I don't have to make multiple try-catch statements for each set of async tasks. I've personally not seen a use for SOS in my workflows as I tend to deal with async tasks that return different types.</div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"expandedWatermarking":false,"expires":false,"sms":false,"expirationNum":1,"expirationUnit":"days","isManaged":false,"persistentProtection":false},"attachments":{},"compose-id":"2","compose-window":{"secure":false}}"></div></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Mon, Sep 4, 2023 at 2:58 PM Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com" target="_blank">Alan.Bateman@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
On 04/09/2023 15:45, Josiah Noel wrote:<br>
> Isn't it in the name that ShutdownOnSuccess would shutdown on success? <br>
> The way I use it, I don't expect anything different.<br>
><br>
> On JDK 20, I used ShutdownOnFailure if I wanted to call join multiple <br>
> times. Also I have in fact done it a bunch, so I hope this hasn't been <br>
> removed?<br>
><br>
I'm curious why you use it this way, does this usage mechanically <br>
convert to create a SOS per round of forking?<br>
<br>
-Alan<br>
</blockquote></div>
</div>