MCPcopy Index your code
hub / github.com/apache/groovy / of

Method of

src/main/java/groovy/concurrent/Awaitable.java:344–344  ·  view source on GitHub ↗

Returns an already-completed Awaitable with the given value. Useful for returning a pre-computed result from an API that requires an Awaitable return type. @param value the result value (may be null) @param the result type @return a completed awaitable

(T value)

Source from the content-addressed store, hash-verified

342 * @return a completed awaitable
343 */
344 static <T> Awaitable<T> of(T value) {
345 return new GroovyPromise<>(CompletableFuture.completedFuture(value));
346 }
347

Callers 15

toAwaitableMethod · 0.95
iteratorMethod · 0.65
writeInfoMethod · 0.65
shutdownNowMethod · 0.65
fromMethod · 0.65
CallTypeEnum · 0.65
transformDirectAccessMethod · 0.65
mapToIntMethod · 0.65
mapToLongMethod · 0.65
mapToDoubleMethod · 0.65
streamMethod · 0.65

Calls

no outgoing calls

Tested by 1

iteratorMethod · 0.52