public interface FutureTimeoutSupport
Modifier and Type | Method and Description |
---|---|
<T> scala.concurrent.Future<T> |
after(scala.concurrent.duration.FiniteDuration duration,
Scheduler using,
scala.Function0<scala.concurrent.Future<T>> value,
scala.concurrent.ExecutionContext ec)
Returns a
Future that will be completed with the success or failure of the provided value
after the specified duration. |
<T> java.util.concurrent.CompletionStage<T> |
afterCompletionStage(scala.concurrent.duration.FiniteDuration duration,
Scheduler using,
scala.Function0<java.util.concurrent.CompletionStage<T>> value,
scala.concurrent.ExecutionContext ec)
Returns a
Future that will be completed with the success or failure of the provided value
after the specified duration. |
<T> scala.concurrent.Future<T> after(scala.concurrent.duration.FiniteDuration duration, Scheduler using, scala.Function0<scala.concurrent.Future<T>> value, scala.concurrent.ExecutionContext ec)
Future
that will be completed with the success or failure of the provided value
after the specified duration.duration
- (undocumented)using
- (undocumented)value
- (undocumented)ec
- (undocumented)<T> java.util.concurrent.CompletionStage<T> afterCompletionStage(scala.concurrent.duration.FiniteDuration duration, Scheduler using, scala.Function0<java.util.concurrent.CompletionStage<T>> value, scala.concurrent.ExecutionContext ec)
Future
that will be completed with the success or failure of the provided value
after the specified duration.duration
- (undocumented)using
- (undocumented)value
- (undocumented)ec
- (undocumented)