pub async fn sleep(duration: Duration)
Asynchronously waits for the provided duration in a platform-compatible way.