Registry / async / embassy-time

embassy-time

JSON →
library0.5.1rscratesunverified

Instant and Duration for embedded no-std systems, with async timer support.

# Cargo.toml [dependencies] embassy-time = "0.5.1"
INSTALL
IMPORT
SIG · EMBASSY-TIME
E
embassy-time
asyncrustv0.5.1
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.

Timer
✓ use embassy_time::Timer;

Use Embassy Timer to create an async delay in an embedded system.

use embassy_time::{Duration, Timer}; #[embassy_executor::task] async fn blink() { loop { Timer::after(Duration::from_millis(1000)).await; } }
Debug
Known issues
gotchaRequires an async executor (e.g., embassy-executor) to run.
fix
Ensure you have an executor set up, like embassy_executor::Executor.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
embassy-time — cargo add embassy-time · libregistry