Skip to content

matthew-andrews/promise-rat-race

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
])

Currently no tests, and only loosely maintained - use at your own risk... or submit a PR with tests, linting etc. :)

About

Promise.race() that doesn't care about the losers

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.2%
  • Makefile 7.8%