#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

#544 in WebAssembly

Download history 4906/week @ 2024-01-14 4286/week @ 2024-01-21 3129/week @ 2024-01-28 3502/week @ 2024-02-04 3884/week @ 2024-02-11 4304/week @ 2024-02-18 3042/week @ 2024-02-25 4181/week @ 2024-03-03 3526/week @ 2024-03-10 3897/week @ 2024-03-17 4124/week @ 2024-03-24 5486/week @ 2024-03-31 3491/week @ 2024-04-07 5302/week @ 2024-04-14 6587/week @ 2024-04-21 3810/week @ 2024-04-28

19,284 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