Crates.io | zduny-wasm-timer |
lib.rs | zduny-wasm-timer |
version | 0.2.8 |
source | src |
created_at | 2022-11-01 18:33:01.786711 |
updated_at | 2023-09-14 20:50:00.703201 |
description | Abstraction over std::time::Instant and futures-timer that works on WASM |
homepage | |
repository | https://github.com/zduny/wasm-timer |
max_upload_size | |
id | 702992 |
size | 78,262 |
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