Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 639 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 639 Bytes

circuit-breaker-await-async

Release codecov

ES6 circuit breaker built around await/async patterns

Usage:

let circuitBreaker = new CircuitBreaker(fn)

try {
  let result = await circuitBreaker.call()
} catch (e) {
  // ...
}

Works with any fn that returns a promise