1 2 3
pub async fn sleep_until(deadline: std::time::Instant) { tokio::time::sleep_until(tokio::time::Instant::from_std(deadline)).await; }