Skip to main content

flake_sleep

Function flake_sleep 

Source
pub fn flake_sleep(seconds: f32)
Expand description

Sleeps (waits) for a set amount of seconds. (Will pause the window thread as well) App may become “not responding” if time is too high. Good for games like tetris/snake.

§Examples

flake_sleep(0.1);