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
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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