From 6cf3ef96e66993822a7f62e555bee5a74ca29c16 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 2 Feb 2019 10:34:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=89=20Adapt=20ants=20for=20explicit=20?= =?UTF-8?q?functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ants.go b/ants.go index cb0cb95..f1bcd35 100644 --- a/ants.go +++ b/ants.go @@ -70,7 +70,7 @@ var ( var defaultAntsPool, _ = NewPool(DefaultAntsPoolSize) // Submit submits a task to pool. -func Submit(task f) error { +func Submit(task func()) error { return defaultAntsPool.Submit(task) }