Exception: Async::MonitorError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Async::MonitorError
- Defined in:
- lib/async/reactor.rb
Instance Attribute Summary collapse
-
#monitor ⇒ Object
readonly
Returns the value of attribute monitor.
Instance Method Summary collapse
-
#initialize(monitor) ⇒ MonitorError
constructor
A new instance of MonitorError.
Constructor Details
#initialize(monitor) ⇒ MonitorError
Returns a new instance of MonitorError.
35 36 37 38 39 |
# File 'lib/async/reactor.rb', line 35 def initialize(monitor) super "Event detected on IO #{monitor.io.inspect} (#{monitor.interests} -> #{monitor.readiness}) without corresponding fiber!" @monitor = monitor end |
Instance Attribute Details
#monitor ⇒ Object (readonly)
Returns the value of attribute monitor.
41 42 43 |
# File 'lib/async/reactor.rb', line 41 def monitor @monitor end |