QueueStatus — success, or a QueueError payload:
QueueErrorReason.FULL if the queue is at capacity, QueueErrorReason.CLOSED if the queue has been closed.
QueueStatus tryPush(WorkItem item) @trustedTry to push a work item without blocking.
item | The work item to push. |
QueueStatus — success, or a QueueError payload:
QueueErrorReason.FULL if the queue is at capacity, QueueErrorReason.CLOSED if the queue has been closed.
QueueStatus tryPush(void delegate() @safe task, string name = null) @trustedditto