summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-03-31 18:08:25 +0300
committerWolfy-J <[email protected]>2018-03-31 18:08:25 +0300
commit28dbf39fb02a44be291befd9ff49cdaf8847a0d3 (patch)
tree445e0eb88a44d4756e210bf7e3798525e0835401 /pool.go
parentd5fba67987cd6589ceb7a882a027be7612370688 (diff)
worker destruction made public
Diffstat (limited to 'pool.go')
-rw-r--r--pool.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pool.go b/pool.go
index 9747bc6b..22e8c970 100644
--- a/pool.go
+++ b/pool.go
@@ -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()