mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8314280: StructuredTaskScope.shutdown should document that the state of completing subtasks is not defined
Reviewed-by: psandoz
This commit is contained in:
parent
6f1071f5ed
commit
ed585d16b9
1 changed files with 6 additions and 0 deletions
|
@ -756,6 +756,12 @@ public class StructuredTaskScope<T> implements AutoCloseable {
|
|||
* {@code join} or {@code joinUntil} will return immediately.
|
||||
* </ul>
|
||||
*
|
||||
* <p> The {@linkplain Subtask.State state} of unfinished subtasks that complete at
|
||||
* around the time that the task scope is shutdown is not defined. A subtask that
|
||||
* completes successfully with a result, or fails with an exception, at around
|
||||
* the time that the task scope is shutdown may or may not <i>transition</i> to a
|
||||
* terminal state.
|
||||
*
|
||||
* <p> This method may only be invoked by the task scope owner or threads contained
|
||||
* in the task scope.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue