Registry / async / futures-time

futures-time

JSON →
library3.1.0rscratesunverified

Async time combinators for working with delays and timeouts.

# Cargo.toml [dependencies] futures-time = "3.1.0"
INSTALL
IMPORT
SIG · FUTURES-TIME
F
futures-time
asyncrustv3.1.0
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.

FutureTimerExt
use futures_time::prelude::*;

Adds a one-second delay to a future.

use futures_time::prelude::*; use std::time::Duration; #[tokio::main] async fn main() { let _ = async {}.delay(Duration::from_secs(1)).await; }
Debug
Known issues
gotchaRequires an async runtime like Tokio or async-std.
fix
Add a runtime dependency and use #[tokio::main] or similar.
affects: >=3.0.0
Upgrade
Version history
3.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
14
OpenAI (training)
1
Resources
futures-time — cargo add futures-time · libregistry