71 |
|
* encountering the exception; minimally only the latter. |
72 |
|
* |
73 |
|
* <p>It is possible to define and use ForkJoinTasks that may block, |
74 |
< |
* but doing do requires three further considerations: (1) Completion |
74 |
> |
* but doing so requires three further considerations: (1) Completion |
75 |
|
* of few if any <em>other</em> tasks should be dependent on a task |
76 |
|
* that blocks on external synchronization or I/O. Event-style async |
77 |
|
* tasks that are never joined (for example, those subclassing {@link |
1086 |
|
|
1087 |
|
/** |
1088 |
|
* Possibly executes tasks until the pool hosting the current task |
1089 |
< |
* {@link ForkJoinPool#isQuiescent is quiescent}. This method may |
1090 |
< |
* be of use in designs in which many tasks are forked, but none |
1091 |
< |
* are explicitly joined, instead executing them until all are |
1092 |
< |
* processed. |
1089 |
> |
* {@linkplain ForkJoinPool#isQuiescent is quiescent}. This |
1090 |
> |
* method may be of use in designs in which many tasks are forked, |
1091 |
> |
* but none are explicitly joined, instead executing them until |
1092 |
> |
* all are processed. |
1093 |
|
*/ |
1094 |
|
public static void helpQuiesce() { |
1095 |
|
Thread t; |