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 is confusing if throttledFn.abort() stops all pending calls to execute since it is a method on a single throttledFn.
I'm trying to schedule a bunch of http calls in an array and then calling Promise.all :
constthrottle=pThrottle(...);consarr=[1,2,3];constpromises=arr.map(num=>throttle(makeHttpReq(num)));try{awaitPromise.all(promises)}catch(e){promises[0].abort()// seems weird that I need a throttleFn to achieve this}
Maybe I'm trying to use this lib for something it wasn't meant to do ?
The text was updated successfully, but these errors were encountered:
It is confusing if throttledFn.abort() stops all pending calls to execute since it is a method on a single throttledFn.
I'm trying to schedule a bunch of http calls in an array and then calling Promise.all :
Maybe I'm trying to use this lib for something it wasn't meant to do ?
The text was updated successfully, but these errors were encountered: