diff options
Diffstat (limited to 'pool.go')
-rw-r--r-- | pool.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -19,6 +19,9 @@ type Pool interface { // Workers returns worker list associated with the pool. Workers() (workers []*Worker) + // DestroyWorker destroys workers and removes it from the pool. + DestroyWorker(w *Worker) + // Destroy all underlying workers (but let them to complete the task). Destroy() } |