Registry / async / async-lock

async-lock

JSON →
library3.4.2rscratesunverified

Async synchronization primitives for Rust.

async
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.

use async_lock::Mutex;

Demonstrates using async_lock::Mutex in an async context.

use async_lock::Mutex; #[tokio::main] async fn main() { let m = Mutex::new(0); let mut guard = m.lock().await; *guard += 1; println!("Value: {}", *guard); }
Debug
Known footguns
gotchaRequires an async runtime (e.g., tokio, async-std) to work.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
19 hits · last 30 days
gptbot
3
amazonbot
3
bytedance
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources