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

Interface Responder

future-java/src/main/java/io/trane/future/Responder.java:8–23  ·  view source on GitHub ↗

Callback to be used with future.respond. @param the type of the future.

Source from the content-addressed store, hash-verified

6 * @param <T> the type of the future.
7 */
8public interface Responder<T> {
9
10 /**
11 * Method called when the future completes with an exception.
12 *
13 * @param ex the failure
14 */
15 public void onException(Throwable ex);
16
17 /**
18 * Method called when the future completes with a value.
19 *
20 * @param value the value.
21 */
22 public void onValue(T value);
23}

Callers 6

transformMethod · 0.65
transformWithMethod · 0.65
respondMethod · 0.65
transformMethod · 0.65
transformWithMethod · 0.65
respondMethod · 0.65

Implementers 8

PromiseTestfuture-java/src/test/java/io/trane/fut
ExceptionFutureTestfuture-java/src/test/java/io/trane/fut
ValueFutureTestfuture-java/src/test/java/io/trane/fut
NoFutureTestfuture-java/src/test/java/io/trane/fut
Promisefuture-java/src/main/java/io/trane/fut
WithinPromisefuture-java/src/main/java/io/trane/fut
JoinPromisefuture-java/src/main/java/io/trane/fut
FirstCompletedOfPromisefuture-java/src/main/java/io/trane/fut

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…