Function ambient_api::prelude::ambient_element::use_spawn
source · pub fn use_spawn<F, R>(hooks: &mut Hooks<'_>, func: F)where
F: FnOnce(&mut World) -> R + Sync + Send + 'static,
R: FnOnce(&mut World) + Sync + Send + 'static,