Method: Faulty::Circuit#lock_closed!

Defined in:
lib/faulty/circuit.rb

#lock_closed!self

Force the circuit to stay closed until unlocked

Returns:

  • (self)


327
328
329
330
# File 'lib/faulty/circuit.rb', line 327

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