Method: Faulty::Circuit#lock_closed!

Defined in:
lib/faulty/circuit.rb

#lock_closed!self

Force the circuit to stay closed until unlocked

Returns:

  • (self)


333
334
335
336
# File 'lib/faulty/circuit.rb', line 333

def lock_closed!
  storage.lock(self, :closed)
  self
end