Async function to retry
Error class. If the async function fails with an error that matches this class, it will be retried.
Optionallogger: LoggerLogger to use for logging. If not provided, no logging will be performed.
Maximum number of retries. If not provided, the default is 1000.
The result of the first successful retry.
Retries an async function if it fails with an error that matches the given class.