lib/polyphony/extensions/fiber.rb
# Terminates all child fibers. This method will return before the fibers are
# actually terminated.
#
# @param graceful [bool] whether to perform a graceful termination
# @return [Fiber] self
Terminates all child fibers. This method will return before the fibers are
actually terminated.
Terminates all child fibers . This method will return before the fibers are actually terminated .
def terminate_all_children(graceful = false)
      return self unless @children
      e = Polyphony::Terminate.new
      @children.each_key do |c|
        c.graceful_shutdown = true if graceful
        c.raise e
      end
      self
    end
def terminate_all_children ( graceful = false ) return self unless @children e = Polyphony :: Terminate . new @children . each_key do | c | c . graceful_shutdown = true if graceful c . raise e end self end
Terminates all child fibers.
Terminates all child fibers .
None
Fiber
graceful
whether to perform a graceful termination
whether to perform a graceful termination