Method: Async::Reactor#close
- Defined in:
- lib/async/reactor.rb
#close ⇒ void
This method returns an undefined value.
Stop each of the children tasks and close the selector.
161 162 163 164 165 166 167 168 |
# File 'lib/async/reactor.rb', line 161 def close @children.each(&:stop) # TODO Should we also clear all timers? @selector.close @selector = nil end |