QueueStatus — success, or a QueueError payload with
QueueErrorReason.CLOSED when the queue has been closed.
QueueStatus push(WorkItem item) @trustedPush a work item onto the queue, blocking if full.
For unbounded queues, this never blocks due to capacity.
item | The work item to push. |
QueueStatus — success, or a QueueError payload with
QueueErrorReason.CLOSED when the queue has been closed.
QueueStatus push(void delegate() @safe task, string name = null) @trustedditto