diff --git a/crates/bevy_tasks/Cargo.toml b/crates/bevy_tasks/Cargo.toml index 25e32d4635..eb9cc232e5 100644 --- a/crates/bevy_tasks/Cargo.toml +++ b/crates/bevy_tasks/Cargo.toml @@ -9,14 +9,13 @@ license = "MIT OR Apache-2.0" keywords = ["bevy"] [features] -multi-threaded = ["dep:async-channel", "dep:async-task", "dep:concurrent-queue"] +multi-threaded = ["dep:async-channel", "dep:concurrent-queue"] [dependencies] futures-lite = "2.0.1" -async-executor = "1.7.2" +async-executor = "1.11" async-channel = { version = "2.2.0", optional = true } async-io = { version = "2.0.0", optional = true } -async-task = { version = "4.7.0", optional = true } concurrent-queue = { version = "2.0.0", optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] diff --git a/crates/bevy_tasks/src/task.rs b/crates/bevy_tasks/src/task.rs index 4ea2ed8dfe..b16b5a88d8 100644 --- a/crates/bevy_tasks/src/task.rs +++ b/crates/bevy_tasks/src/task.rs @@ -12,7 +12,6 @@ use std::{ /// more gracefully and wait until it stops running, use the [`Task::cancel()`] method. /// /// Tasks that panic get immediately canceled. Awaiting a canceled task also causes a panic. -/// Wraps `async_executor::Task` #[derive(Debug)] #[must_use = "Tasks are canceled when dropped, use `.detach()` to run them in the background."] pub struct Task(async_executor::Task); diff --git a/crates/bevy_tasks/src/task_pool.rs b/crates/bevy_tasks/src/task_pool.rs index 1e58f128ca..74b3045e78 100644 --- a/crates/bevy_tasks/src/task_pool.rs +++ b/crates/bevy_tasks/src/task_pool.rs @@ -7,7 +7,7 @@ use std::{ thread::{self, JoinHandle}, }; -use async_task::FallibleTask; +use async_executor::FallibleTask; use concurrent_queue::ConcurrentQueue; use futures_lite::FutureExt;