Registry / async / futures-timer

futures-timer

JSON →
library3.0.4rscratesunverified

Timeouts for futures.

# Cargo.toml [dependencies] futures-timer = "3.0.4"
INSTALL
IMPORT
SIG · FUTURES-TIMER
F
futures-timer
asyncrustv3.0.4
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.

Delay
use futures_timer::Delay;

Creates a future-based timer delay.

use futures_timer::Delay; use std::time::Duration; fn main() { let _delay = Delay::new(Duration::from_secs(1)); println!("Delay created."); }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio or async-std) to actually run the delay.
fix
Use with an executor like tokio::main or async_std::main.
affects: >=3.0.0
Upgrade
Version history
3.0.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
Amazon
1
Resources
futures-timer — cargo add futures-timer · libregistry