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

Method setValue

future-java/src/main/java/io/trane/future/Promise.java:345–347  ·  view source on GitHub ↗

Completes this promise with value. @param value the result.

(final T value)

Source from the content-addressed store, hash-verified

343 * @param value the result.
344 */
345 public final void setValue(final T value) {
346 become(new ValueFuture<>(value));
347 }
348
349 /**
350 * Completes this promise with a failure ex.

Callers 15

mapPromiseMethod · 0.95
mapPromiseNMethod · 0.95
flatMapPromiseMethod · 0.95
flatMapPromiseNMethod · 0.95
ensurePromiseMethod · 0.95
ensurePromiseNMethod · 0.95
setValueMethod · 0.95
setValueNMethod · 0.95
proxyMethod · 0.45
applyMethod · 0.45
applyWithLocalMethod · 0.45
applyHandlerWithLocalMethod · 0.45

Calls 1

becomeMethod · 0.95

Tested by 15

proxyMethod · 0.36
applyMethod · 0.36
applyWithLocalMethod · 0.36
applyHandlerWithLocalMethod · 0.36
setValueSuccessMethod · 0.36