delayDurations property

List<Duration?>? delayDurations
final

The function will be retried based on an exponential backoff strategy with a base delay of 1 second.

But you can override this behavior by providing an optional list of delayDurations`. Each entry in the list corresponds to a specific retry attempt, and the corresponding delay from the list will be used instead of the default exponential delay.

For example, if you provide a list of [2, 4, 8], the delays between the first three retries will be 2, 4, and 8 seconds, respectively.

Implementation

final List<Duration?>? delayDurations;