mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
BUGFIX #I7G6BB 自定义异步线程池初始化存在并发问题
This commit is contained in:
@@ -229,6 +229,8 @@ public class WhenCondition extends Condition {
|
||||
}
|
||||
|
||||
public void setThreadExecutorClass(String threadExecutorClass) {
|
||||
// #I7G6BB 初始化的时候即创建线程池,避免运行时获取导致并发问题
|
||||
ExecutorHelper.loadInstance().buildWhenExecutor(threadExecutorClass);
|
||||
this.threadExecutorClass = threadExecutorClass;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user