RetryCallback: ((operation: Operation, attempt: number, error: Error, path?: string) => void)

Type declaration

    • (operation: Operation, attempt: number, error: Error, path?: string): void
    • Callback invoked before each retry attempt.

      Parameters

      • operation: Operation

        the operation being retried

      • attempt: number

        current attempt number (1-based)

      • error: Error

        the error that triggered the retry

      • Optional path: string

        optional filesystem path related to the operation

      Returns void

Generated using TypeDoc