Registry / async / async-mutex

async-mutex

JSON →
library1.4.1rscratesunverified

Async mutex

# Cargo.toml [dependencies] async-mutex = "1.4.1"
INSTALL
IMPORT
SIG · ASYNC-MUTEX
A
async-mutex
asyncrustv1.4.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.

Mutex
use async_mutex::Mutex;

Basic usage of async-mutex with tokio runtime.

use async_mutex::Mutex; #[tokio::main] async fn main() { let m = Mutex::new(0); let mut guard = m.lock().await; *guard += 1; }
Debug
Known issues
gotchaasync-mutex requires an async runtime (e.g., tokio, async-std) to work.
fix
Add a runtime dependency and use #[tokio::main] or similar.
affects: >=1.0.0
Upgrade
Version history
1.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
49 hits · last 30 days
node
42
Amazon
1
Resources
async-mutex — cargo add async-mutex · libregistry