Method: Lowdown::Connection::Monitor#__crash_handler__

Defined in:
lib/lowdown/connection/monitor.rb

#__crash_handler__(actor, reason) ⇒ void

This method returns an undefined value.

Send the exception to each of our conditions, to signal that an exception occurred on one of the actors in the pool.

Parameters:

  • actor (Actor)
  • reason (Exception)

43
44
45
46
47
48
49
50
51
52
# File 'lib/lowdown/connection/monitor.rb', line 43

def __crash_handler__(actor, reason)
  if reason # is nil if the actor exits normally
    @lowdown_crash_conditions_mutex.synchronize do
      @lowdown_crash_conditions.each do |condition|
        condition.signal(reason)
      end
    end
  end
  super
end