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
How can I add work to a pool while it's already running and make it return only that part of work after that part was finished? I need a pool that's is supposed to run multiple requests in a single pool, requests come from different functions and while pool is still running some old requests. The only requirement is to not to run more that a number of requests simultaneously.
The text was updated successfully, but these errors were encountered:
You'd have to make sure the pool stays active and have the producer function deliver a new promise once it becomes available. While it's feasible using this package, you could also consider Bottleneck or one of Sindre's packages.
How can I add work to a pool while it's already running and make it return only that part of work after that part was finished? I need a pool that's is supposed to run multiple requests in a single pool, requests come from different functions and while pool is still running some old requests. The only requirement is to not to run more that a number of requests simultaneously.
The text was updated successfully, but these errors were encountered: