summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-03 15:44:51 +0300
committerWolfy-J <[email protected]>2019-05-03 15:44:51 +0300
commit28c787d66c2b74dd2300c792abd1e4f987c3d6c9 (patch)
treeb9c5ef036eda3ffa16b5e87a06ce99fcd8a4d7b4 /pool.go
parente9d42947a6922ce2f0aa9f9bcab4ead167735bc9 (diff)
new watchers functionality
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 13e99fa8..23857604 100644
--- a/pool.go
+++ b/pool.go
@@ -31,8 +31,8 @@ type Pool interface {
// Workers returns worker list associated with the pool.
Workers() (workers []*Worker)
- // Remove forces pool to remove specific worker.
- Remove(w *Worker, err error)
+ // Remove forces pool to remove specific worker. Return true is this is first remove request on given worker.
+ Remove(w *Worker, err error) bool
// Destroy all underlying workers (but let them to complete the task).
Destroy()