#instant #timeout #interval #delay #abstraction #functionalities

fluvio-wasm-timer

Abstraction over std::time::Instant and futures-timer that works on WASM

1 unstable release

0.2.5 May 21, 2021

#610 in WebAssembly

Download history 3660/week @ 2023-12-15 1345/week @ 2023-12-22 1548/week @ 2023-12-29 2675/week @ 2024-01-05 5107/week @ 2024-01-12 4084/week @ 2024-01-19 3348/week @ 2024-01-26 3399/week @ 2024-02-02 3702/week @ 2024-02-09 4097/week @ 2024-02-16 3071/week @ 2024-02-23 4306/week @ 2024-03-01 3960/week @ 2024-03-08 3413/week @ 2024-03-15 4249/week @ 2024-03-22 4111/week @ 2024-03-29

16,394 downloads per month
Used in 39 crates (8 directly)

MIT license

76KB
1.5K SLoC

Note

This branch is just a work around to fix a wasm bug.

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