lib/polyphony/extensions/fiber.rb
# Attaches the fiber to the new parent and monitors the new parent.
#
# @param parent [Fiber] new parent
# @return [Fiber] self
Attaches the fiber to the new parent and monitors the new parent.
Attaches the fiber to the new parent and monitors the new parent .
def attach_and_monitor(parent)
      @parent.remove_child(self)
      @parent = parent
      parent.add_child(self)
      monitor(parent)
      self
    end
def attach_and_monitor ( parent ) @parent . remove_child ( self ) @parent = parent parent . add_child ( self ) monitor ( parent ) self end
Attaches the fiber to the new parent and monitors the new parent.
Attaches the fiber to the new parent and monitors the new parent .
None
Fiber
parent
None