UE::Deplete

Takes all items from the queue atomically and then consumes them.