cooldown property
Duration
get
cooldown
How long to back off after the attempt budget is exhausted, before auto re-arming.
Never shorter than one second, whatever the config says (ADR-077). The
re-arm resets the attempts and loads again, for as long as loads keep
failing, and each turn is a real SDK load request. AdFlowConfig.validate
rejects only a negative cooldown, so with a zero one and nothing to wait
between the attempts (maxAttempts 0 or 1, or a nextDelay of 0 ms)
every turn would run on a zero-delay timer: a busy loop. The retries
between attempts keep the configured delays: they stop at maxAttempts.
Implementation
Duration get cooldown {
final cooldown = _config.cooldown;
return cooldown < _minCooldown ? _minCooldown : cooldown;
}