I have a promise array with a 100 promises. I want to await until a single promise fulfills with a truthy value. Also, I want to make sure only x promises run concurrently (set the limit).
I've looked into methods like bluebird.any
and bluebird.some
but they don't do have a concurrency option.
How do I do this?