From 96348a39f57acaff24c0f937190539f5851685fa Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 19 Feb 2019 20:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Switch=20function=20name=20from?= =?UTF-8?q?=20Serve=20to=20Invoke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pool_func.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool_func.go b/pool_func.go index 14f7664..6bb828e 100644 --- a/pool_func.go +++ b/pool_func.go @@ -124,8 +124,8 @@ func NewTimingPoolWithFunc(size, expiry int, pf func(interface{})) (*PoolWithFun //--------------------------------------------------------------------------- -// Serve submits a task to pool. -func (p *PoolWithFunc) Serve(args interface{}) error { +// Invoke submits a task to pool. +func (p *PoolWithFunc) Invoke(args interface{}) error { if 1 == atomic.LoadInt32(&p.release) { return ErrPoolClosed }