zduny-wasm-timer

Crates.iozduny-wasm-timer
lib.rszduny-wasm-timer
version0.2.8
sourcesrc
created_at2022-11-01 18:33:01.786711
updated_at2023-09-14 20:50:00.703201
descriptionAbstraction over std::time::Instant and futures-timer that works on WASM
homepage
repositoryhttps://github.com/zduny/wasm-timer
max_upload_size
id702992
size78,262
Daniel Zduniak (zduny)

documentation

https://docs.rs/zduny-wasm-timer/

README

zduny-wasm-timer

Test Status Crate API

Exports the Instant, Delay, Interval and Timeout structs.

On non-WASM targets, this re-exports the types from tokio-timer. On WASM targets, this uses web-sys and js-sys to implement their functionalities.

Works in Web Workers.

https://crates.io/crates/zduny-wasm-timer

ko-fi

see also

wasm-bindgen

web-sys

js_sys

Commit count: 33

cargo fmt