From 1d337822874c531d591e43f97fb91687ba201610 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 2 Feb 2019 10:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=A0=20Adapt=20worker=20for=20explicit?= =?UTF-8?q?=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.go b/worker.go index 62a8d22..a90a47e 100644 --- a/worker.go +++ b/worker.go @@ -35,7 +35,7 @@ type Worker struct { pool *Pool // task is a job should be done. - task chan f + task chan func() // recycleTime will be update when putting a worker back into queue. recycleTime time.Time