Bevy Async Runner
The Bevy Async Runner simplifies working with asynchronous code in the Bevy game engine. It provides a mechanism to schedule and execute async tasks and provide their result to any system.
Example Usage
Below is an example of how to use the Bevy Async Runner to schedule and execute an async task:
use *;
use ;
async
Installation
Add the following to your Cargo.toml:
# For wasm we can use default bevy io pool
[]
= "0.1"
# For native we should use tokio so that reqwest & others work
[]
= { = "0.1", = ["tokio-runtime-multi-thread"]}
Features
tokio-runtime-multi-thread
Use Tokio as the async runtime instead of Bevy's default IoTaskPool. This can be especially useful when integrating libraries that depend on Tokio (such as reqwest). Does not work on wasm.
License
This project is licensed under the MIT License.
Contributions
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.