News for hackers. Stuff that matters.
Re:Folding Promises in JavaScript by naasking on Thursday September 21, 2017 @10:26AM (#15303720)
> I suppose this might be useful in situations where you are querying an API(s) with multiple requests and some will certainly return seconds before others.

But it's still a serialized operation so the parallelism is still limited. What's really needed is a "parallel reduce" using something like C's select function that will reduce in an arbitrary order using any promises that are ready at any given step.

There are no comments on this comment yet.