It seems like there's an opportunity to further constrain the usage of 
Subtask::get to avoid race conditions.

Cheers,
√


Viktor Klang
Software Architect, Java Platform Group
Oracle
________________________________
From: loom-dev <[email protected]> on behalf of Alan Bateman 
<[email protected]>
Sent: Friday, 26 September 2025 16:25
To: Remi Forax <[email protected]>
Cc: loom-dev <[email protected]>
Subject: Re: Problem report on the usage of Structured Concurrency (5th preview)



On 26/09/2025 14:01, Remi Forax wrote:

In that case, maybe Subtask.get() should not throw an exception when called 
from the main thread.

That seat belt is there to catch mis-use, need to call join before processing 
the outcome.

-Alan

Reply via email to