Registry / async / async-rwlock

async-rwlock

JSON →
library1.3.1rscratesunverified

Async reader-writer lock.

# Cargo.toml [dependencies] async-rwlock = "1.3.1"
INSTALL
IMPORT
SIG · ASYNC-RWLOCK
A
async-rwlock
asyncrustv1.3.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.

RwLock
use async_rwlock::RwLock;

Creates an async RwLock and acquires a read lock.

use async_rwlock::RwLock; #[tokio::main] async fn main() { let lock = RwLock::new(42); let read = lock.read().await; println!("Value: {}", *read); }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) to use .await.
fix
Add tokio as a dependency and use #[tokio::main] or another async runtime.
affects: >=1.0.0
Upgrade
Version history
1.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
52 hits · last 30 days
node
46
Resources
async-rwlock — cargo add async-rwlock · libregistry