Method: Async::Node#consume
- Defined in:
- lib/async/node.rb
#consume ⇒ Object
If the node has a parent, and is #finished?, then remove this node from the parent.
102 103 104 105 106 107 108 |
# File 'lib/async/node.rb', line 102 def consume if @parent && finished? @parent.reap(self) @parent.consume @parent = nil end end |