Function wait

Source
pub fn wait(ms: u32) -> Wait 
Expand description

Creates a Future which will return () after ms milliseconds have passed.

It might return a long time after ms milliseconds have passed, but it will never return before ms milliseconds have passed.

(JavaScript docs)