SubmitStatus — success if the task was queued, or a
SubmitError payload: SubmitErrorReason.QUEUE_FULL if the queue is at capacity, SubmitErrorReason.REJECTED if the pool is not accepting tasks.
SubmitStatus trySubmit(Task task) @trustedTry to submit a task without blocking.
task | The delegate to execute. |
SubmitStatus — success if the task was queued, or a
SubmitError payload: SubmitErrorReason.QUEUE_FULL if the queue is at capacity, SubmitErrorReason.REJECTED if the pool is not accepting tasks.