mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-11 03:13:51 +00:00
chore[net]: overloaded TaskBus execute method
This commit is contained in:
1 parent
242cfb9c9a
commit
0552de2e3d
1 file changed
+4
@@ -117,6 +117,10 @@ public final class TaskBus {
|
||||
executorOf(taskExecutorHash).execute(ThreadUtils.safeRunnable(runnable));
|
||||
}
|
||||
|
||||
public static void execute(long taskExecutorHash, Runnable runnable) {
|
||||
execute((int) taskExecutorHash, runnable);
|
||||
}
|
||||
|
||||
public static void execute(Object argument, Runnable runnable) {
|
||||
execute(calTaskExecutorHash(argument), runnable);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user