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

Method setCancelled

Bolts/src/bolts/Task.java:617–621  ·  view source on GitHub ↗

Sets the cancelled flag on the task, throwing if the Task has already been completed.

()

Source from the content-addressed store, hash-verified

615 * Sets the cancelled flag on the task, throwing if the Task has already been completed.
616 */
617 public void setCancelled() {
618 if (!trySetCancelled()) {
619 throw new IllegalStateException("Cannot cancel a completed task.");
620 }
621 }
622
623 /**
624 * Sets the result of the Task, throwing if the Task has already been completed.

Callers 3

callMethod · 0.80
cancelledMethod · 0.80
thenMethod · 0.80

Calls 1

trySetCancelledMethod · 0.95

Tested by 1

callMethod · 0.64