The function returning a promise to be called.
OptionalmaxRetries: number = 3
The number of times the function should be retried.
Optionaltimeout: number | ((currentAttemptCount: number) => number) = 0
The wait time between attempts in milliseconds. If 0, it will not wait. If a function, it will be called with the number of retries left.
Generated using TypeDoc
Utility to re-run the given promise function until it resolves or until the number of tries was exceeded.