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

Method then

BoltsTest/src/bolts/TaskTest.java:69–76  ·  view source on GitHub ↗
(Task<Integer> task)

Source from the content-addressed store, hash-verified

67
68 complete.continueWith(new Continuation<Integer, Void>() {
69 public Void then(Task<Integer> task) {
70 assertEquals(complete, task);
71 assertTrue(task.isCompleted());
72 assertEquals(5, task.getResult().intValue());
73 assertFalse(task.isFaulted());
74 assertFalse(task.isCancelled());
75 return null;
76 }
77 });
78
79 error.continueWith(new Continuation<Integer, Void>() {

Callers

nothing calls this directly

Calls 10

forResultMethod · 0.95
cancelledMethod · 0.95
callInBackgroundMethod · 0.95
isCompletedMethod · 0.80
getResultMethod · 0.80
isFaultedMethod · 0.80
isCancelledMethod · 0.80
getErrorMethod · 0.80
getErrorsMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected