summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pool.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pool.go b/pool.go
index d22830a6..f8b5f471 100644
--- a/pool.go
+++ b/pool.go
@@ -13,8 +13,8 @@ const (
// Pool managed set of inner worker processes.
type Pool interface {
- // Report attaches pool event watcher.
- Watch(o func(event int, w *Worker, ctx interface{}))
+ // Report all caused events to attached watcher.
+ Report(o func(event int, w *Worker, ctx interface{}))
// Exec one task with given payload and context, returns result or error.
Exec(rqs *Payload) (rsp *Payload, err error)