summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
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 1a134a6a..f491dfa5 100644
--- a/pool.go
+++ b/pool.go
@@ -16,6 +16,9 @@ type Pool interface {
// Exec one task with given payload and context, returns result or error.
Exec(rqs *Payload) (rsp *Payload, err error)
+ // Workers returns worker list associated with the pool.
+ Workers() (workers []*Worker)
+
// Destroy all underlying workers (but let them to complete the task).
Destroy()
}