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

Method create

Bolts/src/bolts/Task.java:103–106  ·  view source on GitHub ↗

Creates a TaskCompletionSource that orchestrates a Task. This allows the creator of a task to be solely responsible for its completion. @return A new TaskCompletionSource.

()

Source from the content-addressed store, hash-verified

101 * @return A new TaskCompletionSource.
102 */
103 public static <TResult> Task<TResult>.TaskCompletionSource create() {
104 Task<TResult> task = new Task<TResult>();
105 return task.new TaskCompletionSource();
106 }
107
108 /**
109 * @return {@code true} if the task completed (has a result, an error, or was cancelled.

Callers 8

callMethod · 0.95
forResultMethod · 0.95
forErrorMethod · 0.95
cancelledMethod · 0.95
callMethod · 0.95
whenAllMethod · 0.95
continueWithMethod · 0.95
continueWithTaskMethod · 0.95

Calls

no outgoing calls

Tested by 1

callMethod · 0.76