summaryrefslogtreecommitdiff
path: root/pool.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-04-15 12:49:23 +0300
committerWolfy-J <[email protected]>2018-04-15 12:49:23 +0300
commita997429e30ca375db6ac94c0cb115f67326b5d48 (patch)
tree751ab0a1da18c1f5ebd42247d9a2d803f21a53bd /pool.go
parente2c1c66d7a35a9c60a4f05126691242068ebb589 (diff)
report instead of observe
Diffstat (limited to 'pool.go')
-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)