#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

#14 in WebAssembly

Download history 134360/week @ 2024-07-21 133190/week @ 2024-07-28 119167/week @ 2024-08-04 161424/week @ 2024-08-11 137066/week @ 2024-08-18 112266/week @ 2024-08-25 127475/week @ 2024-09-01 125837/week @ 2024-09-08 122197/week @ 2024-09-15 130045/week @ 2024-09-22 131480/week @ 2024-09-29 137101/week @ 2024-10-06 133514/week @ 2024-10-13 149927/week @ 2024-10-20 133419/week @ 2024-10-27 144973/week @ 2024-11-03

567,539 downloads per month
Used in 756 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