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
59 60 61 |
# File 'lib/io/event/selector/select.rb', line 59 def fiber @fiber end |
Instance Method Details
#alive? ⇒ Boolean
64 65 66 |
# File 'lib/io/event/selector/select.rb', line 64 def alive? fiber&.alive? end |
#nullify ⇒ Object
68 69 70 |
# File 'lib/io/event/selector/select.rb', line 68 def nullify self.fiber = nil end |
#transfer(*arguments) ⇒ Object
60 61 62 |
# File 'lib/io/event/selector/select.rb', line 60 def transfer(*arguments) fiber&.transfer(*arguments) end |