Modules§
Structs§
- Async
Tasks Plugin - Adds
AsyncWorkresource to world to handle async jobs spawned fromTaskContext::with_world, and schedulesrun_async_jobsinUpdateto dispatch them. - Async
Work - This resource owns a queue for work that needs exclusive
Worldaccess. Callingcreate_task_contextwill give you aTaskContextthat can be used to schedule work onto the queue. - Task
Context - 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 withAsyncWork::create_task_context, or this will be done for you when you spawn a task withcommands.spawn_task(). - With
World
Traits§
Functions§
- run_
async_ jobs - This system dispatches jobs that need exclusive
Worldaccess (any tasks created withTaskContext::with_world). This system can be moved around to control how often and when these tasks are dispatched.