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

Method then

Bolts/src/bolts/Task.java:207–215  ·  view source on GitHub ↗
(Task<TResult> task)

Source from the content-addressed store, hash-verified

205 public Task<Void> makeVoid() {
206 return this.continueWithTask(new Continuation<TResult, Task<Void>>() {
207 public Task<Void> then(Task<TResult> task) throws Exception {
208 if (task.isCancelled()) {
209 return Task.cancelled();
210 }
211 if (task.isFaulted()) {
212 return Task.forError(task.getError());
213 }
214 return Task.forResult(null);
215 }
216 });
217 }
218

Callers

nothing calls this directly

Calls 15

cancelledMethod · 0.95
forErrorMethod · 0.95
forResultMethod · 0.95
completeImmediatelyMethod · 0.95
completeAfterTaskMethod · 0.95
isCancelledMethod · 0.80
isFaultedMethod · 0.80
getErrorMethod · 0.80
setMethod · 0.80
setErrorMethod · 0.80
getMethod · 0.80
setCancelledMethod · 0.80

Tested by

no test coverage detected