We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb2342 commit 8df55dfCopy full SHA for 8df55df
src/rt/timer.rs
@@ -74,12 +74,9 @@ pub trait Timer {
74
/// Return a future that resolves at `deadline`.
75
fn sleep_until(&self, deadline: Instant) -> Pin<Box<dyn Sleep>>;
76
77
- /// Return an `Instant` representing the current time
+ /// Return an `Instant` representing the current time.
78
///
79
- /// This function is currently unstable to implement - its
80
- /// definition might change in a future version of Hyper
81
- ///
82
- /// FIXME: do we want to mention this function in the module doc comment?
+ /// The default implementation returns [`Instant::now()`].
83
fn now(&self) -> Instant {
84
Instant::now()
85
}
0 commit comments