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

Method within

future-java/src/main/java/io/trane/future/Promise.java:836–845  ·  view source on GitHub ↗
(final Duration timeout, final ScheduledExecutorService scheduler,
      final Throwable exception)

Source from the content-addressed store, hash-verified

834 }
835
836 @Override
837 public final Future<T> within(final Duration timeout, final ScheduledExecutorService scheduler,
838 final Throwable exception) {
839 if (timeout.toMillis() == Long.MAX_VALUE)
840 return this;
841
842 final WithinPromise<T> p = new WithinPromise<>(this, timeout, scheduler, exception);
843 respond(p);
844 return p;
845 }
846
847 protected String toStringPrefix() {
848 return "Promise";

Callers

nothing calls this directly

Calls 1

respondMethod · 0.95

Tested by

no test coverage detected