Exception: Async::MonitorError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/async/reactor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#monitorObject (readonly)

Returns the value of attribute monitor.



41
42
43
# File 'lib/async/reactor.rb', line 41

def monitor
  @monitor
end