From a997429e30ca375db6ac94c0cb115f67326b5d48 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 15 Apr 2018 12:49:23 +0300 Subject: report instead of observe --- pool.go | 4 ++-- 1 file 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) -- cgit v1.2.3