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
43 44 45 |
# File 'lib/io/event/selector/select.rb', line 43 def fiber @fiber end |
Instance Method Details
#alive? ⇒ Boolean
48 49 50 |
# File 'lib/io/event/selector/select.rb', line 48 def alive? fiber&.alive? end |
#nullify ⇒ Object
52 53 54 |
# File 'lib/io/event/selector/select.rb', line 52 def nullify self.fiber = nil end |
#transfer(*arguments) ⇒ Object
44 45 46 |
# File 'lib/io/event/selector/select.rb', line 44 def transfer(*arguments) fiber&.transfer(*arguments) end |