Use working wasmtimer for time::every
This commit is contained in:
parent
599d8b560b
commit
6a584af141
6 changed files with 34 additions and 79 deletions
|
|
@ -24,7 +24,7 @@ iced.features = ["debug", "webgl", "fira-sans"]
|
|||
|
||||
uuid = { version = "1.0", features = ["js"] }
|
||||
web-sys = { workspace = true, features = ["Window", "Storage"] }
|
||||
wasm-timer.workspace = true
|
||||
wasmtimer.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
iced_test.workspace = true
|
||||
|
|
|
|||
|
|
@ -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