The type of the resolved value from the async function.
The asynchronous function to retry.
Maximum number of retry attempts. Defaults to 3
.
Delay in milliseconds between retries. Defaults to 100
.
A promise that resolves with the function’s result, or rejects after all retries fail.
Retries an asynchronous operation a specified number of times with delay between attempts.
This utility is useful for handling transient errors (e.g., network requests) by automatically retrying the provided async function on failure.