MCPcopy Create free account
hub / github.com/traneio/future / value

Method value

future-java/src/main/java/io/trane/future/Future.java:168–168  ·  view source on GitHub ↗

Creates a successful future. @param v the value that satisfies the future. @param the type of the value. @return the successful future.

(final T v)

Source from the content-addressed store, hash-verified

166 * @return the successful future.
167 */
168 public static <T> Future<T> value(final T v) {
169 return new ValueFuture<>(v);
170 }
171

Callers 15

ensureMethod · 0.95
ensureExceptionMethod · 0.95
interruptibleMethod · 0.95
raiseMethod · 0.95
isDefinedValueMethod · 0.95
proxyMethod · 0.95
proxyToSuccessMethod · 0.95
delayedMethod · 0.95
withinSuccessMethod · 0.95
becomeIfEmptyLinkedMethod · 0.95

Calls

no outgoing calls

Tested by 15

ensureMethod · 0.76
ensureExceptionMethod · 0.76
interruptibleMethod · 0.76
raiseMethod · 0.76
isDefinedValueMethod · 0.76
proxyMethod · 0.76
proxyToSuccessMethod · 0.76
delayedMethod · 0.76
withinSuccessMethod · 0.76
becomeIfEmptyLinkedMethod · 0.76