summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-04 00:09:12 +0300
committerGitHub <[email protected]>2019-05-04 00:09:12 +0300
commit727602f9d6e3b5a92f6fa0d7a497ab1ef358a349 (patch)
treeec41356d3e421284f44d8c82f3b297e5c8ab2c7a /pool.go
parentf4515e276179d77e3f9457ba0d99545081ae50ea (diff)
parent8a2f79a622e9b3b6e20718a257bfdaaf8dbb8747 (diff)
Merge pull request #144 from spiral/feature/updates
WIP: 1.4.0
Diffstat (limited to 'pool.go')
-rw-r--r--pool.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pool.go b/pool.go
index 7dfea26c..23857604 100644
--- a/pool.go
+++ b/pool.go
@@ -31,6 +31,9 @@ type Pool interface {
// Workers returns worker list associated with the pool.
Workers() (workers []*Worker)
+ // 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()
}