add expired time for pool

This commit is contained in:
andy pan 2018-07-06 14:33:53 +08:00
parent d04febc0b2
commit 56943d78d5
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ const (
) )
// Init a instance pool when importing ants // Init a instance pool when importing ants
var defaultPool, _ = NewPool(DefaultPoolSize) var defaultPool, _ = NewPool(DefaultPoolSize, 10)
// Submit submit a task to pool // Submit submit a task to pool
func Submit(task f) error { func Submit(task f) error {