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

Method schedule

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Task.java:336–342  ·  view source on GitHub ↗
(long initialDelay, @NotNull Action0 action)

Source from the content-addressed store, hash-verified

334 }
335
336 public static void schedule(long initialDelay, @NotNull Action0 action) {
337 var t = Transaction.getCurrent();
338 if (t != null && t.isRunning())
339 t.runWhileCommit(() -> scheduleUnsafe(initialDelay, action));
340 else
341 scheduleUnsafe(initialDelay, action);
342 }
343
344 public static void schedule(long initialDelay, @NotNull Action0 action, long timeout) {
345 var t = Transaction.getCurrent();

Callers 15

reportErrorMethod · 0.95
runTraceMethod · 0.95
ConcurrentLruLikeMethod · 0.95
endMoveWithRetryAsyncMethod · 0.95
scheduleMethod · 0.95
closeMethod · 0.95
startMethod · 0.95
processCleanupMethod · 0.95
startMethod · 0.95
processCleanupMethod · 0.95

Calls 4

getCurrentMethod · 0.95
scheduleUnsafeMethod · 0.95
isRunningMethod · 0.45
runWhileCommitMethod · 0.45

Tested by 1

runTraceMethod · 0.76