1335 |
|
} |
1336 |
|
|
1337 |
|
/** |
1338 |
< |
* Adaptor for Runnables. This implements RunnableFuture |
1338 |
> |
* Adapter for Runnables. This implements RunnableFuture |
1339 |
|
* to be compliant with AbstractExecutorService constraints |
1340 |
|
* when used in ForkJoinPool. |
1341 |
|
*/ |
1356 |
|
} |
1357 |
|
|
1358 |
|
/** |
1359 |
< |
* Adaptor for Runnables without results |
1359 |
> |
* Adapter for Runnables without results |
1360 |
|
*/ |
1361 |
|
static final class AdaptedRunnableAction extends ForkJoinTask<Void> |
1362 |
|
implements RunnableFuture<Void> { |
1373 |
|
} |
1374 |
|
|
1375 |
|
/** |
1376 |
< |
* Adaptor for Runnables in which failure forces worker exception |
1376 |
> |
* Adapter for Runnables in which failure forces worker exception |
1377 |
|
*/ |
1378 |
|
static final class RunnableExecuteAction extends ForkJoinTask<Void> { |
1379 |
|
final Runnable runnable; |
1391 |
|
} |
1392 |
|
|
1393 |
|
/** |
1394 |
< |
* Adaptor for Callables |
1394 |
> |
* Adapter for Callables |
1395 |
|
*/ |
1396 |
|
static final class AdaptedCallable<T> extends ForkJoinTask<T> |
1397 |
|
implements RunnableFuture<T> { |