Skip to content
Discussion options

You must be logged in to vote

tl;dr Bevy supports regular futures and parallel iterators. It does not depend on a "full" async I/O lib like tokio.

Not an expert on the topic, just looking at the bevy_task crate. It depends on these:

futures-lite = "1.4.0"
async-executor = "1.3.0"
async-channel = "1.4.2"
async-task = "4.2.0"
concurrent-queue = "2.0.0"

These are the same crates used by smol, a small alternative to tokio. The main feature is that bevy_tasks has a thread pool to run futures/tasks. The async compute example shows one way of using it, another is shown in the parallel query example (this is almost like rayon but…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bjohnson131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants