mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
!469 修复 [ConcurrencyTester类未关闭线程池] bug
Merge pull request !469 from 孙昊/v5-dev
This commit is contained in:
commit
fa87bfd01a
@ -40,10 +40,12 @@ public class ConcurrencyTester {
|
||||
this.sf.clearWorker();
|
||||
|
||||
timeInterval.start();
|
||||
this.sf//
|
||||
.addRepeatWorker(runnable)//
|
||||
.setBeginAtSameTime(true)// 同时开始
|
||||
this.sf
|
||||
.addRepeatWorker(runnable)
|
||||
.setBeginAtSameTime(true)
|
||||
.start();
|
||||
// 停止线程池释放资源,避免空跑
|
||||
this.sf.stop();
|
||||
|
||||
this.interval = timeInterval.interval();
|
||||
return this;
|
||||
|
Loading…
Reference in New Issue
Block a user