diff options
author | Wolfy-J <[email protected]> | 2019-05-03 15:44:51 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-03 15:44:51 +0300 |
commit | 28c787d66c2b74dd2300c792abd1e4f987c3d6c9 (patch) | |
tree | b9c5ef036eda3ffa16b5e87a06ce99fcd8a4d7b4 /pool.go | |
parent | e9d42947a6922ce2f0aa9f9bcab4ead167735bc9 (diff) |
new watchers functionality
Diffstat (limited to 'pool.go')
-rw-r--r-- | pool.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |