This package has been deprecated

Author message:

promise-rat-race is no longer supported. Use Promise.any instead.

promise-rat-race

1.5.1 • Public • Published

promise-rat-race

Like Promise.race(), but doesn't care about the losers.

Returns a promise that resolves as soon as one promise in an array of promises resolves and only rejects (with the first error returned) if all the promises reject

require('promise-rat-race')([
    promise1,
    promise2,
    promise3
])

Readme

Keywords

Package Sidebar

Install

npm i promise-rat-race

Weekly Downloads

8

Version

1.5.1

License

MIT

Last publish

Collaborators

  • aendra
  • alexwilson
  • chee
  • emmalewis
  • hamza.samih
  • notlee
  • robertboulton
  • rowanmanning
  • seraph2000
  • the-ft