pub fn sleep(duration: Duration) -> Sleep ⓘExpand description
Creates a future that resolves after a specified duration of time.
Uses a simple thread based implementation for sleep. A more efficient
implementation is available by using the tokio-sleep crate feature.