pub fn sleep<T>(timeout: T) -> Durationwhere T: Into<Timeout>,
Put the current thread to sleep, for the given duration. Uses k_sleep for the actual sleep. Returns a duration roughly representing the remaining amount of time if the sleep was woken.
k_sleep