pub fn wait(duration: Duration) -> impl FnMut(Res<'_, Time>) -> CoResult + Clone
Generates a coroutine system that waits for the given duration then breaks