AbstractExecutorService.newTaskFor

Returns a {@code RunnableFuture} for the given callable task.

@param callable the callable task being wrapped @param (T) the type of the callable's result @return a {@code RunnableFuture} which, when run, will call the underlying callable and which, as a {@code Future}, will yield the callable's result as its result and provide for cancellation of the underlying task

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

Meta