We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c66b18 commit 2746e4dCopy full SHA for 2746e4d
1 file changed
src/delay_wasm.rs
@@ -17,9 +17,11 @@ impl Delay {
17
)
18
}
19
20
- /// Resets the timeout. Does nothing on wasm.
+ /// Resets the timeout. Panics on wasm.
21
#[inline]
22
- pub fn reset(&mut self, at: Instant) {}
+ pub fn reset(&mut self, at: Instant) {
23
+ panic!("Resetting the timeout is not supported on wasm.")
24
+ }
25
26
27
impl Future for Delay {
0 commit comments