bevy/crates/bevy_tasks/src
Pixelstorm 503b861e3a
Allow using async_io::block_on in bevy_tasks (#9626)
# Objective

Fixes #9625

## Solution

Adds `async-io` as an optional dependency of `bevy_tasks`. When enabled,
this causes calls to `futures_lite::future::block_on` to be replaced
with calls to `async_io::block_on`.

---

## Changelog

- Added a new `async-io` feature to `bevy_tasks`. When enabled, this
causes `bevy_tasks` to use `async-io`'s implemention of `block_on`
instead of `futures-lite`'s implementation. You should enable this if
you use `async-io` in your application.
2023-09-25 19:59:50 +00:00
..
iter small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
lib.rs Allow using async_io::block_on in bevy_tasks (#9626) 2023-09-25 19:59:50 +00:00
single_threaded_task_pool.rs Fix clippy lint in single_threaded_task_pool (#9851) 2023-09-19 21:45:40 +00:00
slice.rs Document bevy_tasks and enable #![warn(missing_docs)] (#3509) 2022-01-16 04:53:22 +00:00
task.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
task_pool.rs Allow using async_io::block_on in bevy_tasks (#9626) 2023-09-25 19:59:50 +00:00
thread_executor.rs fix clippy::default_constructed_unit_structs and trybuild errors (#9144) 2023-07-13 22:23:04 +00:00
usages.rs elaborate on TaskPool and bevy tasks (#8750) 2023-08-11 21:07:28 +00:00