pub trait RetryTimerProvider: Send + Sync {
// Required method
fn sleep(&self, duration: Duration);
}Expand description
Provider for sleep operations in retry logic.
This trait allows different sleep implementations:
- Production: Real
std::thread::sleepwith actual delays - Testing: Immediate (no-op) sleeps for fast test execution