Note: This is a dangerous operation unless the calling code has detail knowledge of what the submitted task is doing. For instance, if the submitted task itself submits another task for sequential processing to the same worker, a deadlock will occur. @param task the task to run. @return a Future representing pending completion of the task, and whose get() methodwill return null upon completion. @throws java.util.concurrent.RejectedExecutionException if task cannot be scheduled for execution. @throws NullPointerException if task is null.
|
|