FutureTask.this

Creates a {@code FutureTask} that will, upon running, execute the given {@code Runnable}, and arrange that {@code get} will return the given result on successful completion.

@param runnable the runnable task @param result the result to return on successful completion. If you don't need a particular result, consider using constructions of the form: {@code Future<?> f = new FutureTask!(void)(runnable, null)} @throws NullPointerException if the runnable is null

  1. this(Callable!(V) callable)
  2. this(Runnable runnable)
    class FutureTask(V)
    static if(is(V == void))
    this
    (
    Runnable runnable
    )
  3. this(Runnable runnable, V result)

Meta