Skip to content

tekacs/bevy-wasm-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bevy-wasm-tasks

A Bevy plugin which integrates the running of futures (including !Send futures) into a Bevy app.

This code was originally based on bevy-tokio-tasks, but heavily adapted.

crates.io docs.rs

Command-based async systems

This crate exposes a Scheduler SystemParam which can be used to run async work keyed by the current system name (SystemName). Unlike Tasks::spawn_auto, Scheduler::async_system defers system param acquisition + setup to the end of the current Bevy schedule by enqueuing a Command.

The Run::OnChange { triggered } mode treats triggered == true as "schedule a run". If the job is already in-flight, it schedules exactly one follow-up run after completion (coalesced). If triggered later becomes false, the follow-up run remains scheduled.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages