newTaskFor
Returns a RunnableFuture for the given runnable and default value.
Return
a RunnableFuture which, when run, will run the underlying runnable and which, as a Future, will yield the given value as its result and provide for cancellation of the underlying task
Since
1.6
Parameters
runnable
the runnable task being wrapped
value
the default value for the returned future
Returns a RunnableFuture for the given callable task.
Return
a RunnableFuture which, when run, will call the underlying callable and which, as a Future, will yield the callable's result as its result and provide for cancellation of the underlying task
Since
1.6
Parameters
callable
the callable task being wrapped