remove unused imports

This commit is contained in:
andy pan 2018-07-06 14:45:35 +08:00
parent 5ae6239a57
commit 93533b243b
1 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,6 @@ package ants
import (
"errors"
"math"
"runtime"
)
const (
@ -33,11 +32,11 @@ const (
DefaultPoolSize = math.MaxInt32
// DefaultCleanIntervalTime is the interval time to clean up goroutines
DefaultCleanIntervalTime = 30
DefaultCleanIntervalTime = 10
)
// Init a instance pool when importing ants
var defaultPool, _ = NewPool(DefaultPoolSize, 10)
var defaultPool, _ = NewPool(DefaultPoolSize, DefaultCleanIntervalTime)
// Submit submit a task to pool
func Submit(task f) error {