AbstractExecutorService.newTaskFor

Returns a {@code RunnableFuture} for the given runnable and default value.

@param runnable the runnable task being wrapped @param value the default value for the returned future @param (T) the type of the given value @return a {@code RunnableFuture} which, when run, will run the underlying runnable and which, as a {@code Future}, will yield the given value as its result and provide for cancellation of the underlying task

  1. RunnableFuture!(T) newTaskFor(Runnable runnable, T value)
    class AbstractExecutorService
    static
    newTaskFor
    (
    T
    )
    (
    Runnable runnable
    ,)
    if (
    !is(T == void)
    )
  2. RunnableFuture!(T) newTaskFor(Runnable runnable)
  3. RunnableFuture!(T) newTaskFor(Callable!(T) callable)

Meta