mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 18:17:02 +00:00
perf[event]: 简化随机事件执行选择线程池的逻辑
This commit is contained in:
1 parent
745ce86878
commit
c9958bdfdf
1 file changed
+1
-1
@@ -112,7 +112,7 @@ public abstract class EventBus {
|
||||
}
|
||||
|
||||
public static void asyncExecute(Runnable runnable) {
|
||||
execute(RandomUtils.randomInt(EXECUTORS_SIZE), runnable);
|
||||
execute(RandomUtils.randomInt(), runnable);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user