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

Method onFailure

future-java/src/main/java/io/trane/future/Promise.java:676–687  ·  view source on GitHub ↗
(final Consumer<Throwable> c)

Source from the content-addressed store, hash-verified

674 }
675
676 @Override
677 public final Future<T> onFailure(final Consumer<Throwable> c) {
678 if (getInterruptHandler() != null)
679 return continuation(new OnFailure<T>(c) {
680 @Override
681 protected final InterruptHandler getInterruptHandler() {
682 return Promise.this;
683 }
684 });
685 else
686 return continuation(new OnFailure<T>(c));
687 }
688
689 private static class Respond<T> extends Continuation<T, T> {
690 private final Responder<? super T> r;

Callers

nothing calls this directly

Calls 2

getInterruptHandlerMethod · 0.95
continuationMethod · 0.95

Tested by

no test coverage detected