#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

#34 in WebAssembly

Download history 64342/week @ 2024-01-05 66888/week @ 2024-01-12 79267/week @ 2024-01-19 76547/week @ 2024-01-26 72511/week @ 2024-02-02 78119/week @ 2024-02-09 86907/week @ 2024-02-16 85492/week @ 2024-02-23 77894/week @ 2024-03-01 80199/week @ 2024-03-08 82503/week @ 2024-03-15 87048/week @ 2024-03-22 84620/week @ 2024-03-29 90565/week @ 2024-04-05 88513/week @ 2024-04-12 77283/week @ 2024-04-19

357,027 downloads per month
Used in 684 crates (74 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