Interface RetryRejectedOptions<Value>

Options of the retryRejected plugin.

interface RetryRejectedOptions<Value> {
    count?: number;
    delay?: number | ((index: number, executor: Executor<Value>) => number);
    isEager?: boolean;
}

Type Parameters

  • Value

    The value stored by the executor.

Properties

count?: number

The number of times the task must be repeated if it fails.

3
delay?: number | ((index: number, executor: Executor<Value>) => number)

The delay in milliseconds after which the retry is scheduled.

By default, an exponential backoff is used.

isEager?: boolean

If true then executor is retried even if it isn't active.

false