Method: Faulty::Circuit#lock_closed!

Defined in:
lib/faulty/circuit.rb

#lock_closed!self

Force the circuit to stay closed until unlocked

Returns:

  • (self)

308
309
310
311
# File 'lib/faulty/circuit.rb', line 308

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