function

TaskRetries

func TaskRetries( maxAttempts int, delay, maxDelay time.Duration, backoff TaskBackoff, ) TaskOption

Configure total attempts and deterministic retry delay.

Source core/task.go:92

@param maxAttempts
Total attempts including the first.
@param delay
Base retry delay.
@param maxDelay
Cap for linear or exponential growth.
@param backoff
Fixed, linear, or exponential schedule.
@returns
An immutable task policy option.

Related types