pub(crate) fn handle_async_components(
commands: Commands<'_, '_>,
query: Query<'_, '_, (Entity, &mut AsyncComponent)>,
)
Expand description
Polls each AsyncComponent
in the ECS tree and checks for progress and/or completion.
If an AsyncComponent
’s Receiver
contains updates, they are appended to the current world.
The AsyncComponent::task
is polled for completion, and once completed the component is removed
from the world.