MCPcopy Create free account
hub / github.com/e2wugui/zeze / run

Method run

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Task.java:218–224  ·  view source on GitHub ↗
(@NotNull Action0 action, @Nullable String name)

Source from the content-addressed store, hash-verified

216 }
217
218 public static void run(@NotNull Action0 action, @Nullable String name) {
219 var t = Transaction.getCurrent();
220 if (t != null && t.isRunning())
221 t.runWhileCommit(() -> executeUnsafe(action, name));
222 else
223 executeUnsafe(action, name);
224 }
225
226 public static void run(@NotNull Action0 action, @Nullable String name, @Nullable DispatchMode mode) {
227 Transaction t;

Callers 15

benchRoleTimerMethod · 0.95
addMethod · 0.95
mainMethod · 0.95
RunTraceMethod · 0.95
testMethod · 0.95
processErrorSidsMethod · 0.95
sendDirectMethod · 0.95
transmitMethod · 0.95
trySnapshotMethod · 0.95
_runMethod · 0.95
runTraceMethod · 0.95

Calls 5

getCurrentMethod · 0.95
runWhileCommitMethod · 0.95
executeUnsafeMethod · 0.95
isRunningMethod · 0.95
isRunningMethod · 0.45

Tested by 7

benchRoleTimerMethod · 0.76
addMethod · 0.76
mainMethod · 0.76
RunTraceMethod · 0.76
testMethod · 0.76
_runMethod · 0.76
runTraceMethod · 0.76