@@ -55,7 +55,7 @@ use crate::far_future;
55
55
/// struct TokioDelay;
56
56
/// impl MakeDelay for TokioDelay {
57
57
/// type Delay = tokio::time::Sleep;
58
- /// fn delay_util (&self, until: Instant) -> Self::Delay {
58
+ /// fn delay_until (&self, until: Instant) -> Self::Delay {
59
59
/// tokio::time::sleep_until(tokio::time::Instant::from_std(until))
60
60
/// }
61
61
/// }
@@ -91,7 +91,7 @@ use crate::far_future;
91
91
/// struct TokioDelay;
92
92
/// impl MakeDelay for TokioDelay {
93
93
/// type Delay = tokio::time::Sleep;
94
- /// fn delay_util (&self, until: Instant) -> Self::Delay {
94
+ /// fn delay_until (&self, until: Instant) -> Self::Delay {
95
95
/// tokio::time::sleep_until(tokio::time::Instant::from_std(until))
96
96
/// }
97
97
/// }
@@ -145,7 +145,7 @@ pub fn interval<D: MakeDelay>(period: Duration, make_delay: D) -> Interval<D> {
145
145
/// struct TokioDelay;
146
146
/// impl MakeDelay for TokioDelay {
147
147
/// type Delay = tokio::time::Sleep;
148
- /// fn delay_util (&self, until: Instant) -> Self::Delay {
148
+ /// fn delay_until (&self, until: Instant) -> Self::Delay {
149
149
/// tokio::time::sleep_until(tokio::time::Instant::from_std(until))
150
150
/// }
151
151
/// }
@@ -168,7 +168,7 @@ pub fn interval_at<D: MakeDelay>(start: Instant, period: Duration, make_delay: D
168
168
169
169
fn make_interval < D : MakeDelay > ( start : Instant , period : Duration , make_delay : D ) -> Interval < D > {
170
170
let deadline = start;
171
- let delay = Box :: pin ( make_delay. delay_util ( start) ) ;
171
+ let delay = Box :: pin ( make_delay. delay_until ( start) ) ;
172
172
Interval {
173
173
deadline,
174
174
period,
@@ -267,7 +267,7 @@ impl<D: MakeDelay> Interval<D> {
267
267
// When we arrive here, the internal delay returned `Poll::Ready`.
268
268
// Reassign the delay but do not register it. It should be registered with
269
269
// the next call to `poll_tick`.
270
- self . delay = Box :: pin ( self . make_delay . delay_util ( next) ) ;
270
+ self . delay = Box :: pin ( self . make_delay . delay_until ( next) ) ;
271
271
272
272
// Return the time when we were scheduled to tick
273
273
self . deadline = next;
0 commit comments