Question about StructuredTaskScope.joinUntil(Instant)
Alan Bateman
Alan.Bateman at oracle.com
Mon Jul 29 12:37:15 UTC 2024
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20240729/49cc5185/attachment.htm>
More information about the loom-dev
mailing list