Registry / async / atomic-wait

atomic-wait

JSON →
library1.1.0rscratesunverified

Cross-platform atomic wait and wake (futex) functionality for Rust.

# Cargo.toml [dependencies] atomic-wait = "1.1.0"
INSTALL
IMPORT
SIG · ATOMIC-WAIT
A
atomic-wait
asyncrustv1.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.

wait
use atomic_wait::wait;

Blocks the current thread until the atomic value changes from the expected value.

use atomic_wait::wait; use std::sync::atomic::{AtomicU32, Ordering}; let atomic = AtomicU32::new(0); wait(&atomic, 0); // blocks until value changes from 0
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
45
OpenAI (training)
1
Resources
atomic-wait — cargo add atomic-wait · libregistry