Use working wasmtimer for time::every
This commit is contained in:
parent
599d8b560b
commit
6a584af141
6 changed files with 34 additions and 79 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue