<div><br></div><div dir="auto"><br></div><div dir="auto">This sounds excellent! Thank you!</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">— Sten</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 29, 2024 at 15.37 Alan Bateman <<a href="mailto:Alan.Bateman@oracle.com">Alan.Bateman@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><u></u>

  
  <div>
    <br>
    <br>
    <div>On 28/07/2024 17:20, Werner
      Randelshofer wrote:<br>
    </div>
    <blockquote type="cite">
      <pre style="font-family:monospace">:

Having a public method in StructuredTaskScope that waits until a timeout elapses, 
for example something like StructuredTaskScope.join(Duration timeout),
would be very helpful for my use case.
</pre>
    </blockquote>
    We have some proposed updates to this API for the next preview. Part
    of it is dropping the joinUntil preview API and replacing it with a
    timeout (as a Duration) that can be providing when opening a new
    STS. If the timeout expires before the join has completed then the
    STS will be cancelled.</div><div><br>
    <br>
    -Alan<br>
  </div>

</blockquote></div></div>