WorkQueue.tryPop

QueueResult tryPop() @trusted

Try to pop a work item without blocking.

Returns

QueueResult — the popped item, or a QueueError payload:

QueueErrorReason.EMPTY if the queue is empty, QueueErrorReason.CLOSED if it is closed and empty.