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