MCPcopy Index your code
hub / github.com/BoltsFramework/Bolts-Java / waitForCompletion

Method waitForCompletion

Bolts/src/bolts/Task.java:157–163  ·  view source on GitHub ↗

Blocks until the task is complete.

()

Source from the content-addressed store, hash-verified

155 * Blocks until the task is complete.
156 */
157 public void waitForCompletion() throws InterruptedException {
158 synchronized (lock) {
159 if (!isCompleted()) {
160 lock.wait();
161 }
162 }
163 }
164
165 /**
166 * Creates a completed task with the given value.

Calls 1

isCompletedMethod · 0.95