Circuit breaker¶
-
class
ahoyhoy.circuit.Circuit[source]¶ Simple base class to handle the transition between closed and open circuit states.
-
class
ahoyhoy.circuit.OpenState[source]¶ Bases:
ahoyhoy.circuit.circuit.StateCircut in an open state. Opening as well as all other methods will throw RuntimeError.
-
class
ahoyhoy.circuit.ClosedState[source]¶ Bases:
ahoyhoy.circuit.circuit.StateCircuit in a closed state. Closing will throw RuntimeError.