Timeouts in structured concurrency

Alan Bateman alan.bateman at oracle.com
Fri Dec 19 07:19:57 UTC 2025



On 19/12/2025 07:16, Remi Forax wrote:
> For me you can not really use ADTs as return value of the subtasks
> because the default joiners do not have a way to define what is a success and what is a failure.
>
> So you can use ADTs internally but at some point, if a variant represent a failure, you have to convert it to an exception.
>
My comment was about the modelling the outcome of the scope, meaning the 
return from join, rather the of subtasks. If we go back through the 
archives then I think some people were already experimenting on this.

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20251219/ef02ba30/attachment.htm>


More information about the loom-dev mailing list