IMPORT_PATH: "@daiso-tech/core/circuit-breaker/contracts"
"@daiso-tech/core/circuit-breaker/contracts"
The isolate method will transition the circuit breaker to isolated state, meaning the circuit breaker will reject all attempts untill it is manually reset.
isolate
The reset method resets circuit breaker to its initial state regardless of the current state.
reset
The runOrFail method runs asyncFn in when the circuit breaker is in closed state and half opend state. Throws an error when in opend state.
runOrFail
asyncFn
OpenCircuitBreakerError
IMPORT_PATH:
"@daiso-tech/core/circuit-breaker/contracts"