Type alias BackoffStrategy
BackoffStrategy: ((attemptsMade, type?, err?, job?) => Promise<number> | number)
Type declaration
- (attemptsMade, type?, err?, job?): Promise<number> | number
Parameters
- attemptsMade: number
Optional
type: stringOptional
err: ErrorOptional
job: MinimalJob
Returns Promise<number> | number