MCPcopy Create free account
hub / github.com/Beh01der/EasyFlow / execute

Method execute

src/main/java/au/com/ds/ef/SyncExecutor.java:10–22  ·  view source on GitHub ↗
(Runnable task)

Source from the content-addressed store, hash-verified

8 private boolean running = false;
9
10 @Override
11 public void execute(Runnable task) {
12 queue.add(task);
13
14 if (!running) {
15 while (!queue.isEmpty()) {
16 Runnable nextTask = queue.remove(queue.size() - 1);
17 running = true;
18 nextTask.run();
19 running = false;
20 }
21 }
22 }
23}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected