mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-31 16:17:55 +00:00
perf[event]: 简化随机事件执行选择线程池的逻辑
This commit is contained in:
@@ -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