Structured Concurrency yet again
    Alan Bateman 
    Alan.Bateman at oracle.com
       
    Wed May 10 13:03:11 UTC 2023
    
    
  
On 10/05/2023 07:47, Holo The Sage Wolf wrote:
> The way to handle these cases is to put the logic after the task ends 
> into the scope itself.
Yes, extend STS and implement the policy in the subclass. The subclass 
can define APIs to consume the outcome after join. Remi's example calls 
for short circuiting after 3 tasks complete successfully or any task 
fails with UnknownHostException, so easy to do.
-Alan.
    
    
More information about the loom-dev
mailing list