WorkQueue.tryPop

QueueStatus tryPop(out WorkItem item) @trusted

Try to pop a work item without blocking.

Parameters

itemOutput parameter to store the popped item.

Returns

QueueStatus.SUCCESS if an item was popped,

QueueStatus.EMPTY if the queue is empty, QueueStatus.CLOSED if the queue is closed and empty.