MCPcopy Create free account
hub / github.com/BoltsFramework/Bolts-Java / execute

Method execute

Bolts/src/bolts/Task.java:73–84  ·  view source on GitHub ↗
(Runnable command)

Source from the content-addressed store, hash-verified

71 }
72
73 public void execute(Runnable command) {
74 int depth = incrementDepth();
75 try {
76 if (depth <= MAX_DEPTH) {
77 command.run();
78 } else {
79 backgroundExecutor.execute(command);
80 }
81 } finally {
82 decrementDepth();
83 }
84 }
85 };
86 private final Object lock = new Object();
87 private boolean complete;

Callers 3

callMethod · 0.80
completeImmediatelyMethod · 0.80
completeAfterTaskMethod · 0.80

Calls 3

incrementDepthMethod · 0.95
decrementDepthMethod · 0.95
runMethod · 0.80

Tested by

no test coverage detected