When this count is reached, onTooManyAttempts is triggered. maxErrors Type: number Default: 5 Description: The maximum number of errors allowed before stopping the polling. onTooManyErrors is called when this limit is reached. interval Type: number | ((context: PollingContext) => number) ...