lib/polyphony/extensions/fiber.rb
# Terminates and blocks until all child fibers have terminated.
#
# @return [Fiber] self
Terminates and blocks until all child fibers have terminated.
Terminates and blocks until all child fibers have terminated .
def shutdown_all_children(graceful = false)
      return self unless @children
      pending = []
      @children.keys.each do |c|
        next if c.dead?
        c.terminate(graceful)
        pending << c
      end
      Fiber.await(*pending)
      self
    end
def shutdown_all_children ( graceful = false ) return self unless @children pending = [ ] @children . keys . each do | c | next if c . dead? c . terminate ( graceful ) pending << c end Fiber . await ( * pending ) self end
Terminates and blocks until all child fibers have terminated.
Terminates and blocks until all child fibers have terminated .
None
Fiber
graceful
<not_specific>