mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-18 03:01:01 +00:00
update periodic time of cleaning workers
This commit is contained in:
parent
b1e6e05756
commit
6ba16371e6
2
ants.go
2
ants.go
@ -32,7 +32,7 @@ const (
|
|||||||
DefaultAntsPoolSize = math.MaxInt32
|
DefaultAntsPoolSize = math.MaxInt32
|
||||||
|
|
||||||
// DefaultCleanIntervalTime is the interval time to clean up goroutines.
|
// DefaultCleanIntervalTime is the interval time to clean up goroutines.
|
||||||
DefaultCleanIntervalTime = 10
|
DefaultCleanIntervalTime = 5
|
||||||
)
|
)
|
||||||
|
|
||||||
// Init a instance pool when importing ants.
|
// Init a instance pool when importing ants.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user