Disposes any elements in the queue and sets the count of queue items to zero.
This method does not call the drop handler when removing items.