Executes an asynchronous function and retries the execution if it rejects.
The return type of the function.
The asynchronous function to execute.
The duration to wait after a failed execution.
How often should the execution be retried?
Whatever the function resolved to.
Executes an asynchronous function and retries the execution if it rejects.