Method: Async::Wrapper#resume
- Defined in:
- lib/async/wrapper.rb
#resume(*args) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/async/wrapper.rb', line 52 def resume(*args) readiness = @monitor.readiness if @readable and (readiness == :r or readiness == :rw) @readable.resume(*args) end if @writable and (readiness == :w or readiness == :rw) @writable.resume(*args) end if @any @any.resume(*args) end end |