pub trait Sleeper: 'static {
type Sleep: Future<Output = ()>;
// Required method
fn sleep(&self, dur: Duration) -> Self::Sleep;
}Expand description
导出 backon 实现失败重试 A sleeper is used to generate a future that completes after a specified duration.