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
38 39 40 |
# File 'lib/async/notification.rb', line 38 def value @value end |
#waiting ⇒ Object
Returns the value of attribute waiting
38 39 40 |
# File 'lib/async/notification.rb', line 38 def waiting @waiting end |
Instance Method Details
#alive? ⇒ Boolean
39 40 41 |
# File 'lib/async/notification.rb', line 39 def alive? true end |
#resume ⇒ Object
43 44 45 46 47 |
# File 'lib/async/notification.rb', line 43 def resume waiting.each do |fiber| fiber.resume(value) if fiber.alive? end end |