#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

#27 in WebAssembly

Download history 130657/week @ 2024-10-08 145240/week @ 2024-10-15 143157/week @ 2024-10-22 138143/week @ 2024-10-29 144532/week @ 2024-11-05 134197/week @ 2024-11-12 144969/week @ 2024-11-19 128182/week @ 2024-11-26 155271/week @ 2024-12-03 180355/week @ 2024-12-10 156115/week @ 2024-12-17 55519/week @ 2024-12-24 95173/week @ 2024-12-31 236261/week @ 2025-01-07 263857/week @ 2025-01-14 218851/week @ 2025-01-21

829,091 downloads per month
Used in 798 crates (83 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