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

Add sample for dynamic amount of task. #5

Closed
Kvaz1r opened this issue Dec 25, 2019 · 2 comments
Closed

Add sample for dynamic amount of task. #5

Kvaz1r opened this issue Dec 25, 2019 · 2 comments

Comments

@Kvaz1r
Copy link

Kvaz1r commented Dec 25, 2019

It would be good (for copy-paste reason ;)) to have an example where amount of tasks is known at runtime and not compile time.

@vardius
Copy link
Owner

vardius commented Mar 28, 2020

Please have a look at provided examples, whether the value comes from other function or is static doesn't rly matter. You can create worker pool dynamically during runtime same way its shown in this examples.

https://pkg.go.dev/github.com/vardius/worker-pool?tab=doc#pkg-examples

@Kvaz1r
Copy link
Author

Kvaz1r commented Mar 28, 2020

Yes, it seems I overlooking it or forgot what I meant ;-)

@Kvaz1r Kvaz1r closed this as completed Mar 28, 2020
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