Method: Libhoney::Queueing::SizedQueueWithTimeout#clear
- Defined in:
- lib/libhoney/queueing/sized_queue_with_timeout.rb
#clear ⇒ Object
Removes all objects from the queue. They are cast into the abyss never to be seen again.
80 81 82 83 84 85 |
# File 'lib/libhoney/queueing/sized_queue_with_timeout.rb', line 80 def clear @lock.synchronize do @items = [] @space_available.signal unless full? end end |