File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ use std::task::{self, Poll};
28
28
/// This function returns a future whose return type is [`Result`]`<T,`[`Elapsed`]`>`, where `T` is the
29
29
/// return type of the provided future.
30
30
///
31
+ /// If the provided future completes immediatelly, then the future returned from
32
+ /// this function is guaranteed to complete immediatelly with an [`Ok`] variant
33
+ /// no matter the provided duration.
34
+ ///
35
+ /// [`Ok`]: std::result::Result::Ok
31
36
/// [`Result`]: std::result::Result
32
37
/// [`Elapsed`]: crate::time::error::Elapsed
33
38
///
@@ -100,6 +105,11 @@ where
100
105
/// This function returns a future whose return type is [`Result`]`<T,`[`Elapsed`]`>`, where `T` is the
101
106
/// return type of the provided future.
102
107
///
108
+ /// If the provided future completes immediatelly, then the future returned from
109
+ /// this function is guaranteed to complete immediatelly with an [`Ok`] variant
110
+ /// no matter the provided deadline.
111
+ ///
112
+ /// [`Ok`]: std::result::Result::Ok
103
113
/// [`Result`]: std::result::Result
104
114
/// [`Elapsed`]: crate::time::error::Elapsed
105
115
///
You can’t perform that action at this time.
0 commit comments