Class: Async::Notification::Signal
- Inherits:
-
Struct
- Object
- Struct
- Async::Notification::Signal
- Defined in:
- lib/async/notification.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
-
#waiting ⇒ Object
Returns the value of attribute waiting.
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
40 41 42 |
# File 'lib/async/notification.rb', line 40 def value @value end |
#waiting ⇒ Object
Returns the value of attribute waiting
40 41 42 |
# File 'lib/async/notification.rb', line 40 def waiting @waiting end |
Instance Method Details
#alive? ⇒ Boolean
41 42 43 |
# File 'lib/async/notification.rb', line 41 def alive? true end |
#resume ⇒ Object
45 46 47 48 49 |
# File 'lib/async/notification.rb', line 45 def resume waiting.each do |fiber| fiber.resume(value) if fiber.alive? end end |