summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-03-31 18:06:31 +0300
committerWolfy-J <[email protected]>2018-03-31 18:06:31 +0300
commitd5fba67987cd6589ceb7a882a027be7612370688 (patch)
tree7d3297817063de3f6b53b24e13a4a5dab9e1da44 /pool.go
parent93680a356e2fd30f2502d150b4ef0ad61fcc8a74 (diff)
worker destruction made public
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 f491dfa5..9747bc6b 100644
--- a/pool.go
+++ b/pool.go
@@ -19,6 +19,9 @@ 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)
+
// Destroy all underlying workers (but let them to complete the task).
Destroy()
}