Function sleep

Source
pub async fn sleep(time: Duration)
Expand description

Sleeps for the given duration using js setTimeout.