(circuit-breaker trip-threshold recovery-ms)
Creates a circuit breaker. Params:
trip-threshold
: number denoting amount of fails before the circuit
breaker is tripped
recovery-ms
: time, in milliseconds, for resetting one error count.
Creates a circuit breaker. Params: `trip-threshold`: number denoting amount of fails before the circuit breaker is tripped `recovery-ms`: time, in milliseconds, for resetting one error count.
(call! this proc)
(shutdown! this)
(tripped? this)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close