Class TimeoutFuture<V>

All Implemented Interfaces:
Future<V>, AbstractFuture.Trusted<V>, ListenableFuture<V>

@GwtIncompatible final class TimeoutFuture<V> extends FluentFuture.TrustedFuture<V>
Implementation of Futures#withTimeout.

Future that delegates to another but will finish early (via a TimeoutException wrapped in an ExecutionException) if the specified duration expires. The delegate future is interrupted and cancelled if it times out.