Registry / async / fluvio-wasm-timer

fluvio-wasm-timer

JSON →
library0.2.5rscratesunverified

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

# Cargo.toml [dependencies] fluvio-wasm-timer = "0.2.5"
INSTALL
IMPORT
SIG · FLUVIO-WASM-TIMER
F
fluvio-wasm-timer
asyncrustv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Instant
use fluvio_wasm_timer::Instant;

Get the current instant

use fluvio_wasm_timer::Instant; fn main() { let now = Instant::now(); println!("Current time: {:?}", now); }
Debug
Known issues
gotchaOn WASM, Instant::now() may not be monotonic
fix
Use std::time::Instant when not targeting WASM
affects: >=0.2.0
Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
32
Amazon
2
OpenAI (training)
1
Resources
fluvio-wasm-timer — cargo add fluvio-wasm-timer · libregistry