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

Ability configure idle timeout. #61

Open
Wondertan opened this issue Jun 1, 2022 · 1 comment
Open

Ability configure idle timeout. #61

Wondertan opened this issue Jun 1, 2022 · 1 comment

Comments

@Wondertan
Copy link
Contributor

Currently, idle timeout is hardcoded, but I encountered a use case where it will be useful to change it to a higher number. Any chance you can accept a PR for this @gammazero?

@jamestrandung
Copy link

jamestrandung commented Jun 1, 2022

@Wondertan if you're on Go 1.18, you can use my worker pool. I retrofitted gammazero's implementation to match other features in my lib and I do provide a config to change idle timeout. https://github.com/jamestrandung/go-concurrency/tree/master/async#worker-pool

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