Merge pull request #2780 from l4l/forked-wasmtimer
Use working wasmtimer for time::every
This commit is contained in:
commit
d7563ee94a
6 changed files with 34 additions and 79 deletions
|
|
@ -579,7 +579,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