diff options
Diffstat (limited to 'examples/todos/src/main.rs')
-rw-r--r-- | examples/todos/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 7faf742e..74c4c464 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -578,7 +578,8 @@ impl SavedState { .set_item("state", &json) .map_err(|_| SaveError::Write)?; - let _ = wasm_timer::Delay::new(std::time::Duration::from_secs(2)).await; + let _ = + wasmtimer::tokio::sleep(std::time::Duration::from_secs(2)).await; Ok(()) } |