SubmitResult.SUCCESS if the task was queued,
SubmitResult.QUEUE_FULL if the queue is at capacity, SubmitResult.REJECTED if the pool is not accepting tasks.
SubmitResult trySubmit(Task task) @trustedTry to submit a task without blocking.
task | The delegate to execute. |
SubmitResult.SUCCESS if the task was queued,
SubmitResult.QUEUE_FULL if the queue is at capacity, SubmitResult.REJECTED if the pool is not accepting tasks.