diff --git a/tokio-util/src/sync/reusable_box.rs b/tokio-util/src/sync/reusable_box.rs index 3204207db..0c6940526 100644 --- a/tokio-util/src/sync/reusable_box.rs +++ b/tokio-util/src/sync/reusable_box.rs @@ -122,7 +122,12 @@ impl Future for ReusableBoxFuture<'_, T> { } } -// The future stored inside ReusableBoxFuture<'_, T> must be Send. +// The future stored inside ReusableBoxFuture<'_, T> must be Send since the +// `new` and `set` and `try_set` methods only allow setting the future to Send +// futures. +// +// Note that T is the return type of the future, so its not relevant for +// whether the future itself is Send. unsafe impl Send for ReusableBoxFuture<'_, T> {} // The only method called on self.boxed is poll, which takes &mut self, so this