Cargo Features
[dependencies]
bevy_tasks = { version = "0.17.1", default-features = false, features = ["multi_threaded", "async_executor", "futures-lite", "async-io"] }
- default = async_executor, futures-lite
-
These default features are set whenever
bevy_tasks
is added without
somewhere in the dependency tree.default-features = false - multi_threaded = async_executor
-
Enables multi-threading support.
Without this feature, all tasks will be run on a single thread.Enables async-channel, concurrent-queue, std of bevy_platform
- async_executor default multi_threaded? = futures-lite
-
Uses
async-executor
as a task execution backend. This backend is incompatible withno_std
targets.Enables async-executor, std of bevy_platform
- futures-lite default async_executor
-
Provide an implementation of
block_on
fromfutures-lite
.Enables std of bevy_platform and futures-lite
- async-io
-
Use async-io's implementation of block_on instead of futures-lite's implementation.
This is preferred if your application uses async-io.Enables async-io, std of bevy_platform