/wasm-timer

Abstraction over std::time::Instant and tokio_timer that works on WASM

Primary LanguageRustMIT LicenseMIT

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.