class Honeybadger::Worker

def shutdown(force = false)

Experimental RBS support (using type sampling data from the type_fusion project).

def shutdown: (?false force) -> true

This signature was generated using 1 sample from 1 application.

def shutdown(force = false)
  d { 'shutting down worker' }
  mutex.synchronize do
    @shutdown = true
  end
  return true if force
  return true unless thread&.alive?
  if throttled?
    warn { sprintf('Unable to report %s error(s) to Honeybadger (currently throttled)', queue.size) } unless queue.empty?
    return true
  end
  info { sprintf('Waiting to report %s error(s) to Honeybadger', queue.size) } unless queue.empty?
  queue.push(SHUTDOWN)
  !!thread.join
ensure
  queue.clear
  kill!
end