time: add #[track_caller] to FutureExt::timeout (#7588)

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
This commit is contained in:
Martin Grigorov
2025-09-11 09:18:40 +02:00
committed by GitHub
parent d8e8037de5
commit 7a0ca807be
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ pub trait FutureExt: Future {
/// assert!(res.is_err());
/// # }
/// ```
#[track_caller]
fn timeout(self, timeout: std::time::Duration) -> tokio::time::Timeout<Self>
where
Self: Sized,