#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

#15 in WebAssembly

Download history 85447/week @ 2024-07-04 96436/week @ 2024-07-11 134340/week @ 2024-07-18 122244/week @ 2024-07-25 130415/week @ 2024-08-01 152130/week @ 2024-08-08 128336/week @ 2024-08-15 132266/week @ 2024-08-22 113501/week @ 2024-08-29 130603/week @ 2024-09-05 126938/week @ 2024-09-12 126435/week @ 2024-09-19 130807/week @ 2024-09-26 137348/week @ 2024-10-03 129206/week @ 2024-10-10 147142/week @ 2024-10-17

570,029 downloads per month
Used in 731 crates (76 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