Creates a future that fails with a TimeoutException if this future isn't completed within the timeout. @param timeout how long to wait for the result @param timeUnit the time unit of timeout. @param scheduler used to schedule an internal task after the timeout. @return a future that
(final Duration timeout, final ScheduledExecutorService scheduler)
| 575 | * timeout, a failed future otherwise. |
| 576 | */ |
| 577 | default Future<T> within(final Duration timeout, final ScheduledExecutorService scheduler) { |
| 578 | return within(timeout, scheduler, TimeoutException.stackless); |
| 579 | } |
| 580 |
no outgoing calls