From 56943d78d58a2b68969a2966f67e67104c40cc6d Mon Sep 17 00:00:00 2001 From: andy pan Date: Fri, 6 Jul 2018 14:33:53 +0800 Subject: [PATCH] add expired time for pool --- ants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ants.go b/ants.go index d8755eb..03dd478 100644 --- a/ants.go +++ b/ants.go @@ -37,7 +37,7 @@ const ( ) // Init a instance pool when importing ants -var defaultPool, _ = NewPool(DefaultPoolSize) +var defaultPool, _ = NewPool(DefaultPoolSize, 10) // Submit submit a task to pool func Submit(task f) error {