Crate bevy_mod_async

Source

Modules§

async_asset
async_entity
common_uses
event_stream
prelude
time

Structs§

AsyncTasksPlugin
Adds AsyncWork resource to world to handle async jobs spawned from TaskContext::with_world, and schedules run_async_jobs in Update to dispatch them.
AsyncWork
This resource owns a queue for work that needs exclusive World access. Calling create_task_context will give you a TaskContext that can be used to schedule work onto the queue.
TaskContext
This is an adapter between async tasks and AsyncWork. This struct gets passed as a paramter into all new async tasks and can be used to send work to get run with exclusive world access. You can create one with AsyncWork::create_task_context, or this will be done for you when you spawn a task with commands.spawn_task().
WithWorld

Traits§

SpawnCommandExt
SpawnTaskExt

Functions§

run_async_jobs
This system dispatches jobs that need exclusive World access (any tasks created with TaskContext::with_world). This system can be moved around to control how often and when these tasks are dispatched.