Future of an empty Option
Asynchronously tests whether a predicate holds for some of the elements of a collection of futures
Improved version of scala.concurrent.Future.fold, that fails the resulting Future as soon as one of the input Futures fails.
Asynchronously tests whether a predicate holds for all elements of a collection of futures
Convert a Try into a Future
Retries a Future until it succeeds or a maximum number of retries has been reached.
Retries a Future until it succeeds or a maximum number of retries has been reached.
The maximum number of retries, defaults to Long.MaxValue
A function that returns a new Future
The ExecutionContext on which to retry the Future if it failed.
A successful Future if the Future succeeded within maxRetryTimes or a failed Future otherwise.
Retries a Future until it succeeds or a maximum number of retries has been reached, with each retry iteration being delayed.
Retries a Future until it succeeds or a maximum number of retries has been reached, with each retry iteration being delayed. The delay grows exponentially from a given start value and by a given factor until it reaches a given maxiumum delay value.
The maximum number of retries, defaults to Long.MaxValue
The initial delay value, defaults to 1 nanosecond
The maximum delay value, defaults to 1 day
The factor by which the delay increases between retry iterations
A function that returns a new Future
The ExecutionContext on which to retry the Future if it failed.
A successful Future if the Future succeeded within maxRetryTimes or a failed Future otherwise.
Little helpers for scala futures
11/Jul/2014 13:25