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

Method respond

future-java/src/main/java/io/trane/future/Promise.java:702–713  ·  view source on GitHub ↗
(final Responder<? super T> r)

Source from the content-addressed store, hash-verified

700 }
701
702 @Override
703 public final Future<T> respond(final Responder<? super T> r) {
704 if (getInterruptHandler() != null)
705 return continuation(new Respond<T>(r) {
706 @Override
707 protected final InterruptHandler getInterruptHandler() {
708 return Promise.this;
709 }
710 });
711 else
712 return continuation(new Respond<T>(r));
713 }
714
715 private static class Rescue<T> extends Continuation<T, T> {
716 private final Function<Throwable, ? extends Future<T>> f;

Callers 2

proxyToMethod · 0.95
withinMethod · 0.95

Calls 2

getInterruptHandlerMethod · 0.95
continuationMethod · 0.95

Tested by

no test coverage detected