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
21 22 23 |
# File 'lib/async/notification.rb', line 21 def value @value end |
#waiting ⇒ Object
Returns the value of attribute waiting
21 22 23 |
# File 'lib/async/notification.rb', line 21 def waiting @waiting end |
Instance Method Details
#alive? ⇒ Boolean
22 23 24 |
# File 'lib/async/notification.rb', line 22 def alive? true end |
#transfer ⇒ Object
26 27 28 29 30 |
# File 'lib/async/notification.rb', line 26 def transfer waiting.each do |fiber| fiber.transfer(value) if fiber.alive? end end |