Question about StructuredTaskScope.joinUntil(Instant)

Sten Nordstrom stnordstrom at gmail.com
Wed Jul 31 13:40:19 UTC 2024


This sounds excellent! Thank you!


— Sten


On Mon, Jul 29, 2024 at 15.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20240731/4fbd504f/attachment-0001.htm>


More information about the loom-dev mailing list