mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
Reviewed-by: jpai
This commit is contained in:
parent
f60c1f9bc4
commit
92a04e201e
3 changed files with 99 additions and 4 deletions
|
@ -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>()) {
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue