#instant #abstraction #delay #timeout #interval #re-exports

wasm-timer

Abstraction over std::time::Instant and futures-timer that works on WASM

10 releases

0.2.5 Aug 31, 2020
0.2.4 Nov 20, 2019
0.2.2 Oct 10, 2019
0.2.1 Aug 29, 2019
0.1.1 Apr 18, 2019

#23 in WebAssembly

Download history 60233/week @ 2023-12-14 36908/week @ 2023-12-21 35478/week @ 2023-12-28 63568/week @ 2024-01-04 65411/week @ 2024-01-11 79383/week @ 2024-01-18 77782/week @ 2024-01-25 68281/week @ 2024-02-01 80909/week @ 2024-02-08 86049/week @ 2024-02-15 84941/week @ 2024-02-22 79391/week @ 2024-02-29 77894/week @ 2024-03-07 81194/week @ 2024-03-14 88062/week @ 2024-03-21 64234/week @ 2024-03-28

326,798 downloads per month
Used in 670 crates (73 directly)

MIT license

75KB
1.5K SLoC

Wasm-timer

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 to implement their functionalities.

Dependencies

~1.1–3.5MB
~68K SLoC