diff options
Diffstat (limited to 'pool.go')
-rw-r--r-- | pool.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,8 +19,8 @@ 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) + // Replace replaces dead or expired worker with new instance. + Replace(w *Worker, caused interface{}) // Destroy all underlying workers (but let them to complete the task). Destroy() |