Question about StructuredTaskScope.joinUntil(Instant)

Werner Randelshofer werner.randelshofer at fibermail.ch
Tue Jul 30 13:22:02 UTC 2024


That’s awesome. Looking forward to the updated API! :-D

-Werner


> On 29 Jul 2024, at 14:37, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> 
> 
> On 28/07/2024 17:20, Werner Randelshofer wrote:
>> :
>> 
>> 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.
> 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.
> 
> -Alan



More information about the loom-dev mailing list