Function wait

Source
pub fn wait(duration: Duration) -> impl FnMut(Res<'_, Time>) -> CoResult + Clone
Expand description

Generates a coroutine system that waits for the given duration then breaks