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