diff --git a/crates/bevy_tasks/src/task.rs b/crates/bevy_tasks/src/task.rs index eb257080b4..b4f6b1eae7 100644 --- a/crates/bevy_tasks/src/task.rs +++ b/crates/bevy_tasks/src/task.rs @@ -14,6 +14,7 @@ use std::{ /// 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); impl Task {