RFR: 8306647: Implementation of Structured Concurrency (Preview) [v5]

Paul Sandoz psandoz at openjdk.org
Tue Jun 6 17:16:36 UTC 2023


On Tue, 6 Jun 2023 07:13:15 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> This is the implementation of:
>> 
>> - JEP 453: Structured Concurrency (Preview)
>> - JEP 446: Scoped Values (Preview)
>> 
>> For the most part, this is just moving code and tests.  StructuredTaskScope moves to j.u.concurrent as a preview API, ScopedValue moves to j.lang as a preview API, and module jdk.incubator.concurrent has been removed. The significant API changes since incubator are:
>> 
>> - StructuredTaskScope.fork returns Subtask instead of Future (JEP 453 has a section on this)
>> - ScopedValue.where methods are replaced with runWhere, callWhere and getWhere
>
> Alan Bateman has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 18 commits:
> 
>  - Fix typo in javadoc
>  - Merge
>  - Merge
>  - Sync up from loom repo
>  - Merge
>  - Sync with loom repo, re-work ScopedValue class description
>  - Sync up from loom repo
>  - Remove csm.Threads
>  - Merge
>  - Test should not be in update for main line
>  - ... and 8 more: https://git.openjdk.org/jdk/compare/2e9eff56...0f514588

Marked as reviewed by psandoz (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/13932#pullrequestreview-1465700542


More information about the core-libs-dev mailing list