We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef8a441 + 511b0a1 commit 06d1bd8Copy full SHA for 06d1bd8
src/delay.rs
@@ -68,7 +68,7 @@ impl Delay {
68
/// Resets this timeout to an new timeout which will fire at the time
69
/// specified by `at`.
70
#[inline]
71
- pub fn reset(&mut self, delay: Duration) {
+ pub fn reset(&mut self, dur: Duration) {
72
if self._reset(delay).is_err() {
73
self.state = None
74
}
src/delay_wasm.rs
@@ -20,9 +20,9 @@ impl Delay {
20
Self(SendWrapper::new(TimeoutFuture::new(dur.as_millis() as u32)))
21
22
23
- /// Resets the timeout. Panics on wasm.
+ /// Resets the timeout.
24
25
- pub fn reset(&mut self, at: Duration) {
26
*self = Delay::new(at);
27
28
0 commit comments