8311867: StructuredTaskScope.shutdown does not interrupt newly started threads

Reviewed-by: jpai
This commit is contained in:
Alan Bateman 2023-07-13 07:33:01 +00:00
parent f60c1f9bc4
commit 92a04e201e
3 changed files with 99 additions and 4 deletions

View file

@ -59,7 +59,7 @@ import jdk.internal.misc.ThreadFlock;
* used to get the result completed successfully, or the exception if the subtask failed.
* {@snippet lang=java :
* Callable<String> task1 = ...
* Callable<Integer> task1 = ...
* Callable<Integer> task2 = ...
*
* try (var scope = new StructuredTaskScope<Object>()) {
*