Executors.submit

Submits a Runnable task for execution and returns a Future representing that task. The Future's {@code get} method will return {@code null} upon <em>successful</em> completion.

@param task the task to submit @return a Future representing pending completion of the task @throws RejectedExecutionException if the task cannot be scheduled for execution @throws NullPointerException if the task is null

  1. Future!(void) submit(ExecutorService es, Runnable task)
    class Executors
    static
    Future!(void)
    submit
  2. Future!(T) submit(ExecutorService es, Runnable task, T result)
  3. Future!(T) submit(ExecutorService es, Callable!(T) task)

Meta