diff --git a/pool.go b/pool.go index 77ec952..04730de 100644 --- a/pool.go +++ b/pool.go @@ -53,7 +53,7 @@ type Pool struct { // lock for synchronous operation. lock sync.Mutex - // cond for waiting idle worker + // cond for waiting to get a idle worker cond *sync.Cond once sync.Once diff --git a/pool_func.go b/pool_func.go index fc3c73f..3423ab7 100644 --- a/pool_func.go +++ b/pool_func.go @@ -51,7 +51,7 @@ type PoolWithFunc struct { // lock for synchronous operation. lock sync.Mutex - // cond for waiting idle worker + // cond for waiting to get a idle worker cond *sync.Cond // pf is the function for processing tasks.