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

Added Wait() #16

Merged
merged 32 commits into from
Dec 25, 2020
Merged

Added Wait() #16

merged 32 commits into from
Dec 25, 2020

Conversation

dpaks
Copy link
Owner

@dpaks dpaks commented Dec 25, 2020

This function waits till all the jobs complete but doesn't cleanup the associated resources. Useful when the workerpool needs to be reused at a later time.

Deepak S and others added 30 commits June 24, 2020 14:31
1. Removed timeout option
All workers will be killed if Stop() is called and if their jobs are
finished
2. Disabling logs - made it an unexported global variable
Logging is expensive
Stop(true) blocks until all the output channels are read from
2. Enhanced examples
Deepak S added 2 commits December 25, 2020 21:25
This function waits till all the jobs complete but doesn't cleanup
the associated resources.
@dpaks dpaks merged commit d438b75 into master Dec 25, 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

Successfully merging this pull request may close these issues.

1 participant