pub fn retry_delay_ms( base_delay_ms: u64, max_delay_ms: Option<u64>, attempt: u32, ) -> u64
The backoff before retry attempt (1-based): base * 2^(attempt-1), capped.
attempt
base * 2^(attempt-1)