1607 |
|
testInvokeOnPool(singletonPool(), a); |
1608 |
|
} |
1609 |
|
|
1610 |
+ |
|
1611 |
+ |
/** |
1612 |
+ |
* ForkJoinTask.quietlyComplete returns when task completes |
1613 |
+ |
* normally without setting a value. The most recent value |
1614 |
+ |
* established by setRawResult(V) (or null by default) is returned |
1615 |
+ |
* from invoke. |
1616 |
+ |
*/ |
1617 |
+ |
public void testQuietlyComplete() { |
1618 |
+ |
RecursiveAction a = new CheckedRecursiveAction() { |
1619 |
+ |
protected void realCompute() { |
1620 |
+ |
AsyncFib f = new AsyncFib(8); |
1621 |
+ |
f.quietlyComplete(); |
1622 |
+ |
assertEquals(8, f.number); |
1623 |
+ |
checkCompletedNormally(f); |
1624 |
+ |
}}; |
1625 |
+ |
testInvokeOnPool(mainPool(), a); |
1626 |
+ |
} |
1627 |
+ |
|
1628 |
|
} |