mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
time: add #[track_caller] to FutureExt::timeout (#7588)
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user