WorkQueue.pop

QueueResult pop() @trusted

Pop a work item from the queue, blocking if empty.

Returns

QueueResult — the popped item, or a QueueError payload with

QueueErrorReason.CLOSED if the queue is closed and empty.