RFR: 8349462: Gatherers.mapConcurrent could support async interrupts
Viktor Klang
vklang at openjdk.org
Wed Feb 5 16:21:20 UTC 2025
This change is likely going to need some extra verbiage in the spec for mapConcurrent, and thus a CSR.
This behavior aligns mapConcurrent with how parallel streams work in conjunction with interruptions of the caller thread.
-------------
Commit messages:
- Enabling the async interruption test for parallel streams as well
- Adds support for async interruption / cancellation of Gatherers.mapConcurrent
Changes: https://git.openjdk.org/jdk/pull/23467/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23467&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8349462
Stats: 52 lines in 2 files changed: 20 ins; 11 del; 21 mod
Patch: https://git.openjdk.org/jdk/pull/23467.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23467/head:pull/23467
PR: https://git.openjdk.org/jdk/pull/23467
More information about the core-libs-dev
mailing list