Async sleep

Rust

#![allow(unused)]
fn main() {
use std::time::Duration;
use tokio::time;
time::sleep(Duration::from_secs(2)).await;
}

Python

import async
await asyncio.sleep(2)