From d83ba30d8d426c1ce4363190fbb718fd086928d1 Mon Sep 17 00:00:00 2001 From: Jamie Date: Fri, 14 Mar 2025 15:48:54 +0100 Subject: [PATCH] task: explicitly state that `TaskTracker` does not abort tasks on Drop (#7223) --- tokio-util/src/task/task_tracker.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tokio-util/src/task/task_tracker.rs b/tokio-util/src/task/task_tracker.rs index 0efff1dd1..682ebf35f 100644 --- a/tokio-util/src/task/task_tracker.rs +++ b/tokio-util/src/task/task_tracker.rs @@ -53,6 +53,8 @@ use tokio::{ /// `TaskTracker`, this does not happen. Once tasks exit, they are immediately removed from the /// `TaskTracker`. /// +/// Note that unlike [`JoinSet`], dropping a `TaskTracker` does not abort the tasks. +/// /// # Examples /// /// For more examples, please see the topic page on [graceful shutdown].