On Tue, 24 May 2022 04:18:44 GMT, Joe Darcy <[email protected]> wrote:
>> This is the implementation of JEP 428: Structured Concurrency (Incubator).
>>
>> This is a non-final API that provides a gentle on-ramp to structure a task
>> as a family of concurrent subtasks, and to coordinate the subtasks as a unit.
>
> src/jdk.incubator.concurrent/share/classes/jdk/incubator/concurrent/StructuredTaskScope.java
> line 237:
>
>> 235: * the task result is retrieved via its {@code Future}, or
>> <i>happen-before</i> any actions
>> 236: * taken in a thread after {@linkplain #join() joining} of the task
>> scope.
>> 237: *
>
> Would a @-jls reference to the appropriate section of the memory model
> chapter help here?
Yes, it can reference JLS 17.4.5.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8787