You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be nice to have a decorator race that resolves against promise.race instead of promise.all. this would allow to implement easily services that allow timeout by themselves (instead of waiting for a request to a 3rd party system to timeout).
race decorator for Promise.race
It should be nice to have a decorator race that resolves against promise.race instead of promise.all. this would allow to implement easily services that allow timeout by themselves (instead of waiting for a request to a 3rd party system to timeout).
for example (assume below code is in a resolver):
Info about Promise.race
Note that promise.race settles on the first promise resolved (be that a value from a resolved promise or an exception from a rejected exception).
Promise.race
Promise.race and async/await examples
The text was updated successfully, but these errors were encountered: