Class: IO::Event::Selector::Select::Optional
- Inherits:
-
Struct
- Object
- Struct
- IO::Event::Selector::Select::Optional
- Defined in:
- lib/io/event/selector/select.rb
Instance Attribute Summary collapse
-
#fiber ⇒ Object
Returns the value of attribute fiber.
Instance Method Summary collapse
Instance Attribute Details
#fiber ⇒ Object
Returns the value of attribute fiber
57 58 59 |
# File 'lib/io/event/selector/select.rb', line 57 def fiber @fiber end |
Instance Method Details
#alive? ⇒ Boolean
62 63 64 |
# File 'lib/io/event/selector/select.rb', line 62 def alive? fiber&.alive? end |
#nullify ⇒ Object
66 67 68 |
# File 'lib/io/event/selector/select.rb', line 66 def nullify self.fiber = nil end |
#transfer(*arguments) ⇒ Object
58 59 60 |
# File 'lib/io/event/selector/select.rb', line 58 def transfer(*arguments) fiber&.transfer(*arguments) end |