Method: Async::Waiter#wait
- Defined in:
- lib/async/waiter.rb
#wait(count = nil) ⇒ Object
Wait for the first count tasks to complete.
53 54 55 56 57 58 59 |
# File 'lib/async/waiter.rb', line 53 def wait(count = nil) if count first(count).map(&:wait) else first.wait end end |