Fix fn comment

This commit is contained in:
2026-07-19 16:59:20 +00:00
parent ae64fc1acf
commit f178b2e6fd

View File

@@ -52,7 +52,7 @@ export class ExponentialBackoff {
/**
* Run the function with exponential backoff
*
* @param fn - The function to run
* @param taskFn - The function to run
* @param onError - The callback to call when an error occurs
* @param options - The configuration for the exponential backoff
*
@@ -160,7 +160,7 @@ export class ExponentialBackoff {
*
* If the function fails and we have hit the max attempts, an ExponentialBackoffMaxRetriesHitError will be thrown with all the errors that were thrown by the task function
*
* @param fn - The function to run
* @param taskFn - The function to run
* @param onError - The callback to call when an error occurs
*
* @throws An {@link ExponentialBackoffMaxRetriesHitError} with all the errors that were thrown by the task function