Method
within
(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
Tested by
no test coverage detected