RFR: 8342486: Implement JEP 505: Structured Concurrency (Fifth Preview) [v8]

Alan Bateman alanb at openjdk.org
Tue Apr 15 15:43:51 UTC 2025


On Tue, 15 Apr 2025 06:35:53 GMT, Chen Liang <liach at openjdk.org> wrote:

> 1. Should we add the other exceptions as suppressed to the first?

It's a good question and one that we mulled over when creating STS.ShutdownOnFailure. We're not proposing to change it in this update as it doesn't scale when many subtasks fail around the same time, is confusing to see many suppressed exceptions from different subtasks, and incomplete when subtasks fail after the scope is cancelled. For logging/other needs here then it would be simpler to just use a different joiner that returns all subtasks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21934#discussion_r2044938865


More information about the core-libs-dev mailing list