WorkQueue.close

void close() @trusted

Close the queue, preventing further pushes.

Pending consumers will be woken up and their pops will fail with QueueErrorReason.CLOSED once the queue is drained.