Method: Tap::App::Queue#clear
- Defined in:
- lib/tap/app/queue.rb
#clear ⇒ Object
Clears self and returns an array of the currently enqueued jobs.
60 61 62 63 64 65 66 |
# File 'lib/tap/app/queue.rb', line 60 def clear synchronize do current = @queue @queue = [] current end end |