[][src]Function wasm_game_lib::system::sleep

pub async fn sleep(duration: Duration)

This is the wasm version of the sleep function. For now it is the only way to sleep. The precision of this function is 1ms.