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

Method submit

future-java/src/main/java/io/trane/future/Tailrec.java:77–85  ·  view source on GitHub ↗
(final Runnable r, final int batchSize)

Source from the content-addressed store, hash-verified

75 }
76
77 private final void submit(final Runnable r, final int batchSize) {
78 syncPermits = batchSize;
79 tasks = new ArrayList<>(1);
80 tasks.add(r);
81 if (!running) {
82 run();
83 syncPermits = 0;
84 }
85 }
86
87 private final void run() {
88 running = true;

Callers 2

applyMethod · 0.95
asyncMethod · 0.45

Calls 2

runMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected