Class: IO::Event::Selector::Select::Optional

Inherits:
Struct
  • Object
show all
Defined in:
lib/io/event/selector/select.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fiberObject

Returns the value of attribute fiber

Returns:

  • (Object)

    the current value of fiber



49
50
51
# File 'lib/io/event/selector/select.rb', line 49

def fiber
  @fiber
end

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/io/event/selector/select.rb', line 54

def alive?
	fiber&.alive?
end

#nullifyObject



58
59
60
# File 'lib/io/event/selector/select.rb', line 58

def nullify
	self.fiber = nil
end

#transfer(*arguments) ⇒ Object



50
51
52
# File 'lib/io/event/selector/select.rb', line 50

def transfer(*arguments)
	fiber&.transfer(*arguments)
end