Module async_ecs

Source
Expand description

This module handles asynchronous operations in ECS.

Most notably, it defines the AsyncComponent struct which tracks the state of an async operation and automatically executes commands emitted on the world the component is attached to.

Macros§

new_async_component 🔒
Bevy doesn’t implement a common trait for task pools, so we use this macro to generate the implementation for each task pool.

Structs§

AsyncComponent
Represents an ongoing asynchronous operation that will be polled for progress and/or completion.
Receiver
The receiving side of a channel.
Sender
The sending side of a channel.

Functions§

handle_async_components 🔒
Polls each AsyncComponent in the ECS tree and checks for progress and/or completion.
report_progress
A helper function for reporting progress from a task controlled by AsyncComponent.