MCPcopy Create free account
hub / github.com/traneio/future / run

Method run

future-java/src/main/java/io/trane/future/Tailrec.java:87–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 private final void run() {
88 running = true;
89 while (tasks != null) {
90 final ArrayList<Runnable> pending = tasks;
91 tasks = null;
92 for (int i = 0; i < pending.size(); i++)
93 pending.get(i).run();
94 }
95 running = false;
96 }
97
98 /**
99 * Runs the recursive future using the default batch size.

Callers 1

submitMethod · 0.95

Calls 2

getMethod · 0.65
runMethod · 0.45

Tested by

no test coverage detected