1332 |
|
} |
1333 |
|
|
1334 |
|
/** |
1335 |
< |
* Adaptor for Runnables. This implements RunnableFuture |
1335 |
> |
* Adapter for Runnables. This implements RunnableFuture |
1336 |
|
* to be compliant with AbstractExecutorService constraints |
1337 |
|
* when used in ForkJoinPool. |
1338 |
|
*/ |
1353 |
|
} |
1354 |
|
|
1355 |
|
/** |
1356 |
< |
* Adaptor for Runnables without results |
1356 |
> |
* Adapter for Runnables without results |
1357 |
|
*/ |
1358 |
|
static final class AdaptedRunnableAction extends ForkJoinTask<Void> |
1359 |
|
implements RunnableFuture<Void> { |
1370 |
|
} |
1371 |
|
|
1372 |
|
/** |
1373 |
< |
* Adaptor for Runnables in which failure forces worker exception |
1373 |
> |
* Adapter for Runnables in which failure forces worker exception |
1374 |
|
*/ |
1375 |
|
static final class RunnableExecuteAction extends ForkJoinTask<Void> { |
1376 |
|
final Runnable runnable; |
1388 |
|
} |
1389 |
|
|
1390 |
|
/** |
1391 |
< |
* Adaptor for Callables |
1391 |
> |
* Adapter for Callables |
1392 |
|
*/ |
1393 |
|
static final class AdaptedCallable<T> extends ForkJoinTask<T> |
1394 |
|
implements RunnableFuture<T> { |