Registry / async / async-event

async-event

JSON →
library0.2.1rscratesunverified

An efficient async condition variable for lock-free algorithms.

# Cargo.toml [dependencies] async-event = "0.2.1"
INSTALL
IMPORT
SIG · ASYNC-EVENT
A
async-event
asyncrustv0.2.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.

Event
use async_event::Event;

Creates an async event and waits for notification.

use async_event::Event; #[tokio::main] async fn main() { let event = Event::new(); let listener = event.listen(); // In another task: event.notify(); listener.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: >=0.1.0
Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
34
Resources
async-event — cargo add async-event · libregistry