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

Meta