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

Method setResult

Bolts/src/bolts/Task.java:626–630  ·  view source on GitHub ↗

Sets the result of the Task, throwing if the Task has already been completed.

(TResult result)

Source from the content-addressed store, hash-verified

624 * Sets the result of the Task, throwing if the Task has already been completed.
625 */
626 public void setResult(TResult result) {
627 if (!trySetResult(result)) {
628 throw new IllegalStateException("Cannot set the result of a completed task.");
629 }
630 }
631
632 /**
633 * Sets the error of the Task, throwing if the Task has already been completed.

Callers 4

callMethod · 0.80
forResultMethod · 0.80
runMethod · 0.80
thenMethod · 0.80

Calls 1

trySetResultMethod · 0.95

Tested by 1

callMethod · 0.64