#timeout #delay #interval #instant #abstraction #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

#24 in WebAssembly

Download history 142193/week @ 2024-11-16 132028/week @ 2024-11-23 144535/week @ 2024-11-30 176850/week @ 2024-12-07 181978/week @ 2024-12-14 50912/week @ 2024-12-21 82519/week @ 2024-12-28 194484/week @ 2025-01-04 283211/week @ 2025-01-11 245220/week @ 2025-01-18 277453/week @ 2025-01-25 298496/week @ 2025-02-01 401126/week @ 2025-02-08 315869/week @ 2025-02-15 301123/week @ 2025-02-22 511358/week @ 2025-03-01

1,582,286 downloads per month
Used in 827 crates (84 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–4MB
~71K SLoC