Fix fn comment
This commit is contained in:
@@ -52,7 +52,7 @@ export class ExponentialBackoff {
|
|||||||
/**
|
/**
|
||||||
* Run the function with exponential backoff
|
* 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 onError - The callback to call when an error occurs
|
||||||
* @param options - The configuration for the exponential backoff
|
* @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
|
* 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
|
* @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
|
* @throws An {@link ExponentialBackoffMaxRetriesHitError} with all the errors that were thrown by the task function
|
||||||
|
|||||||
Reference in New Issue
Block a user