ants icon indicating copy to clipboard operation
ants copied to clipboard

purgePeriodically 导致阻塞

Open zqlpaopao opened this issue 2 years ago • 3 comments

最新版的 v2.5.0 release后 仍然 purgePeriodically 循环 导致程序阻塞 ,是我用的不对吗 Type: delay Time: May 21, 2022 at 12:01am (CST) Duration: 20.02s, Total samples = 40s (199.80%) Entering interactive mode (type "help" for commands, "o" for options) (pprof) traces Type: delay Time: May 21, 2022 at 12:01am (CST) Duration: 20.02s, Total samples = 40s (199.80%) -----------+------------------------------------------------------- 20s runtime.selectgo github.com/panjf2000/ants/v2.(*Pool).purgePeriodically

zqlpaopao avatar May 20 '22 16:05 zqlpaopao

代码贴一下。

panjf2000 avatar May 21 '22 10:05 panjf2000

抱歉 代码不方便贴出来 相同代码 降了版本 是没有问题的

zqlpaopao avatar May 27 '22 11:05 zqlpaopao

我也遇到了

Anderson-Lu avatar Nov 26 '22 11:11 Anderson-Lu