QueueStatus.SUCCESS if the item was pushed,
QueueStatus.CLOSED if 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 if the item was pushed,
QueueStatus.CLOSED if the queue has been closed.
QueueStatus push(void delegate() @safe task, string name = null) @trustedditto