Structured concurrency: TaskHandle

Alan Bateman Alan.Bateman at oracle.com
Sat May 13 06:41:13 UTC 2023


On 13/05/2023 07:39, forax at univ-mlv.fr wrote:
> :
> If i run it with JDK 20, it prints
>
> java --add-modules=jdk.incubator.concurrent --enable-preview --source 20 StructuredConcurrencyTest.java
> WARNING: Using incubator modules: jdk.incubator.concurrent
> future 1: CANCELLED
> future 2: FAILED
>
> The second future does not report CANCELLED but FAILED, but perhaps there is an implementation bug somewhere ?
Okay, now I understand what you are saying. Yes, it's the old 
API/implementation, that was fixed as part of moving away from Future.

-Alan


More information about the loom-dev mailing list