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

Method onSuccess

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

Executes the Consumer if this future completes successfully. @param c the Consumer to be executed. @return a future that completes with the result of this after c is executed, if applicable.

(Consumer<? super T> c)

Source from the content-addressed store, hash-verified

462 * executed, if applicable.
463 */
464 Future<T> onSuccess(Consumer<? super T> c);
465
466 /**
467 * Executes the Consumer if this future completes with an exception.

Callers 7

onSuccessMethod · 0.65
onSuccessInterruptMethod · 0.65
onSuccessMethod · 0.65
onSuccessMethod · 0.65
onSuccessExceptionMethod · 0.65
onSuccessMethod · 0.65
applyMethod · 0.65

Calls

no outgoing calls

Tested by 6

onSuccessMethod · 0.52
onSuccessInterruptMethod · 0.52
onSuccessMethod · 0.52
onSuccessMethod · 0.52
onSuccessExceptionMethod · 0.52
onSuccessMethod · 0.52