Checks the result of the function 'f' and puts the current thread to sleep if it evaluates to false until, either the function returns true or the maximum number of attempts have been performed.
Checks the result of the function 'f' and puts the current thread to sleep if it evaluates to false until, either the function returns true or the maximum number of attempts have been performed.
Note: The supplied function can be called more times that the set number of attempts.
simple description of what is being waited for
the amount of time to wait for each attempts (in ms)
the maximum number of attempts to make while waiting
the function to be execution as part of each attempts
RuntimeException
if the wait fails
Maps through the future created by the function 'f', checks the result and either creates a new future by executing the supplied function or, if the maximum number of attempts have been performed, it fails.
Maps through the future created by the function 'f', checks the result and either creates a new future by executing the supplied function or, if the maximum number of attempts have been performed, it fails.
Note: The supplied function will be called multiple times, creating multiple futures.
simple description of what is being waited for
the amount of time to wait for each attempts (in ms)
the maximum number of attempts to make while waiting
the function to be execution as part of each attempts
implicit execution context
a future to wait on for the result of the operation