Function bevy_spawn_fn::spawner_scope
source ยท pub fn spawner_scope<'a, 'b: 'a, 'c: 'a, T>(
spawner: &'a mut impl AsSpawner<'a, 'b, 'c>,
f: impl FnOnce() -> T,
) -> TExpand description
Push a Spawner onto thread local storage in a scope.