pub trait Sleeper: Send + Sync { // Required method fn sleep_for(&self, duration: Duration); }
Provides blocking relative sleep operations.
Blocks the current thread for the specified duration.
duration