Future<?> submit(Runnable task)
Submits a Runnable task for background eution and returns a Future representing that task. The Future's get() method will return null upon successful completion.
Parameters
Name | Description |
task | The task to submit. |
Return
A Future representing pending completion of the task.