mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-18 11:21:02 +00:00
optimization
This commit is contained in:
parent
a2fbed1900
commit
9c4ec3fe31
@ -62,7 +62,7 @@ type PoolWithFunc struct {
|
|||||||
once sync.Once
|
once sync.Once
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PoolWithFunc) MonitorAndClear() {
|
func (p *PoolWithFunc) monitorAndClear() {
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
time.Sleep(p.expiryDuration)
|
time.Sleep(p.expiryDuration)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user