hunterloftis/awaiting

rat race

Closed this issue · 4 comments

Any interest in adding this into your library. It's like race, but ignores errors unless all promises error
https://github.com/Financial-Times/promise-rat-race

That's interesting, can you outline a use case for me?

Gotcha - in that case, you can use this already:

const winner = a.single([ rat0, rat1, rat2, rat3 ], Infinity)

The 2nd argument is the number of errors to ignore.

I had a feeling something in the library would already cover it. thanks