lib/polyphony/extensions/fiber.rb
# Terminates the fiber, optionally setting the graceful shutdown flag.
#
# @param graceful [bool] Whether to perform a graceful shutdown
# @return [Fiber] self
Terminates the fiber, optionally setting the graceful shutdown flag.
Terminates the fiber optionally setting the graceful shutdown flag .
def terminate(graceful = false)
      return if @running == false
      @graceful_shutdown = graceful
      schedule Polyphony::Terminate.new
      self
    end
def terminate ( graceful = false ) return if @running == false @graceful_shutdown = graceful schedule Polyphony :: Terminate . new self end
Terminates the fiber, optionally setting the graceful shutdown flag.
Terminates the fiber optionally setting the graceful shutdown flag .
None
Fiber
graceful
Whether to perform a graceful shutdown
Whether to perform a graceful shutdown