Function bevy_defer::spawn
source · pub fn spawn<T: 'static>(fut: impl Future<Output = T> + 'static)
👎Deprecated: Use AsyncWorldMut::spawn instead.
Expand description
Spawn a bevy_defer
compatible future.
The spawned future will not be dropped until finished.
§Panics
If used outside a bevy_defer
future.