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

Method cancelled

Bolts/src/bolts/Task.java:186–190  ·  view source on GitHub ↗

Creates a cancelled task with the given error.

()

Source from the content-addressed store, hash-verified

184 * Creates a cancelled task with the given error.
185 */
186 public static <TResult> Task<TResult> cancelled() {
187 Task<TResult>.TaskCompletionSource tcs = Task.<TResult> create();
188 tcs.setCancelled();
189 return tcs.getTask();
190 }
191
192 /**
193 * Makes a fluent cast of a Task's result possible, avoiding an extra continuation just to cast

Callers 6

testPrimitivesMethod · 0.95
thenMethod · 0.95
testOnSuccessMethod · 0.95
testOnSuccessTaskMethod · 0.95
thenMethod · 0.95

Calls 3

createMethod · 0.95
setCancelledMethod · 0.80
getTaskMethod · 0.80

Tested by 5

testPrimitivesMethod · 0.76
thenMethod · 0.76
testOnSuccessMethod · 0.76
testOnSuccessTaskMethod · 0.76