#instant #timeout #interval #delay #abstraction #targets

fluvio-wasm-timer

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

1 unstable release

0.2.5 May 21, 2021

#650 in WebAssembly

Download history 4257/week @ 2024-07-20 3549/week @ 2024-07-27 3992/week @ 2024-08-03 2917/week @ 2024-08-10 4840/week @ 2024-08-17 4651/week @ 2024-08-24 5771/week @ 2024-08-31 3717/week @ 2024-09-07 3072/week @ 2024-09-14 4288/week @ 2024-09-21 3879/week @ 2024-09-28 4462/week @ 2024-10-05 4336/week @ 2024-10-12 4090/week @ 2024-10-19 4767/week @ 2024-10-26 6070/week @ 2024-11-02

19,714 downloads per month
Used in 34 crates (9 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–4MB
~71K SLoC