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§
- Async
Component - 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
.