#futures-timer #tokio-timer #abstraction #instant #wasm-target #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

#43 in WebAssembly

Download history 278170/week @ 2026-01-08 217493/week @ 2026-01-15 232152/week @ 2026-01-22 268781/week @ 2026-01-29 299554/week @ 2026-02-05 301840/week @ 2026-02-12 344752/week @ 2026-02-19 363538/week @ 2026-02-26 478072/week @ 2026-03-05 473427/week @ 2026-03-12 388039/week @ 2026-03-19 389291/week @ 2026-03-26 443012/week @ 2026-04-02 473499/week @ 2026-04-09 425487/week @ 2026-04-16 376178/week @ 2026-04-23

1,791,867 downloads per month
Used in 1,064 crates (109 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–4MB
~73K SLoC