circuit-breaker-await-async

1.3.6 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i circuit-breaker-await-async

Weekly Downloads

10

Version

1.3.6

License

ISC

Unpacked Size

21.3 kB

Total Files

13

Last publish

Collaborators

  • patrickleet