lib/polyphony/extensions/fiber.rb
# Detaches the fiber from its current parent. The fiber will be made a child
# of the main fiber (for the current thread.)
#
# @return [Fiber] self
Detaches the fiber from its current parent. The fiber will be made a child
of the main fiber (for the current thread.)
Detaches the fiber from its current parent . The fiber will be made a child of the main fiber ( for the current thread . )
def detach
      @parent.remove_child(self)
      @parent = @thread.main_fiber
      @parent.add_child(self)
      self
    end
def detach @parent . remove_child ( self ) @parent = @thread . main_fiber @parent . add_child ( self ) self end
Detaches the fiber from its current parent.
Detaches the fiber from its current parent .
None
Fiber