Method: Async::List#shift
- Defined in:
- lib/async/list.rb
#shift ⇒ Object
Shift the first node off the list, if it is not empty.
232 233 234 235 236 |
# File 'lib/async/list.rb', line 232 def shift if node = first remove!(node) end end |