Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding dynamically new tak in the pool #8

Closed
fvisticot opened this issue Jan 20, 2019 · 1 comment
Closed

Adding dynamically new tak in the pool #8

fvisticot opened this issue Jan 20, 2019 · 1 comment

Comments

@fvisticot
Copy link

fvisticot commented Jan 20, 2019

Is it possible to "dynamically" add new task in the pool ?

  1. Init pool with concurrency
  2. Add / Stream async task in the pool
@rxaviers
Copy link
Owner

Yeap, I believe you can. If array is the variable you pass to asyncPool, you may be able to array.push new stuff in there dynamically. Worth to check, but I believe you can. Feel free to post new comments and I can reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants