Sunday, 14 May 2017

Is any similar function to when.settle in rxjs for node?

I've started using when in order to manage arrays of promises, and it's useful for me because it waits until all promises have finished, even if any of them have failed and then I can check all their results. That's a requirement for my function and I achieve it with the when.settle function.

But a coworker told me to use rxjs, specifically the forkJoin method. After a test I saw that the behavior is not the same as waht I want, so after read the rxjs documentation, I haven't seen something similar...so, is there any similar function to when.settle in rxjs?



via christiansr85

No comments:

Post a Comment