Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Add Close function to PooledWrokerPool and WorkerPool #182

Open
cw9 opened this issue Jun 8, 2018 · 0 comments
Open

Add Close function to PooledWrokerPool and WorkerPool #182

cw9 opened this issue Jun 8, 2018 · 0 comments

Comments

@cw9
Copy link
Contributor

cw9 commented Jun 8, 2018

It would be nice to have a Close() function for these WorkerPool interfaces, which could stop accepting new work and waits until all existing works are finished before return.

This could make the server shutdown process a low simpler without the user having to pass in a sync.WaitGroup for each piece of work and waiting on that.

@richardartoul

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

No branches or pull requests

1 participant