47 |
|
* |
48 |
|
* @param runnable the runnable task being wrapped |
49 |
|
* @param value the default value for the returned future |
50 |
< |
* @param <T> the type of the returned future's value |
50 |
> |
* @param <T> the type of the given value |
51 |
|
* @return a {@code RunnableFuture} which, when run, will run the |
52 |
|
* underlying runnable and which, as a {@code Future}, will yield |
53 |
|
* the given value as its result and provide for cancellation of |
62 |
|
* Returns a {@code RunnableFuture} for the given callable task. |
63 |
|
* |
64 |
|
* @param callable the callable task being wrapped |
65 |
+ |
* @param <T> the type of the callable's result |
66 |
|
* @return a {@code RunnableFuture} which, when run, will call the |
67 |
|
* underlying callable and which, as a {@code Future}, will yield |
68 |
|
* the callable's result as its result and provide for |