#timer #interval #timeout #delay

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

#116 in WebAssembly

Download history 25202/week @ 2021-07-01 24194/week @ 2021-07-08 23875/week @ 2021-07-15 24077/week @ 2021-07-22 24935/week @ 2021-07-29 25416/week @ 2021-08-05 21279/week @ 2021-08-12 23775/week @ 2021-08-19 27741/week @ 2021-08-26 24902/week @ 2021-09-02 30388/week @ 2021-09-09 26342/week @ 2021-09-16 28204/week @ 2021-09-23 27209/week @ 2021-09-30 29341/week @ 2021-10-07 23998/week @ 2021-10-14

75,349 downloads per month
Used in 272 crates (64 directly)

MIT license

74KB
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.2–3.5MB
~64K SLoC