{"id":63171,"library":"async-rwlock","title":"Async RwLock","description":"Async reader-writer lock.","status":"active","version":"1.3.1","language":"rust","source_language":null,"source_url":"https://github.com/stjepang/async-lock","tags":["async","lock","concurrency","reader-writer"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nasync-rwlock = \"1.3.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add async-rwlock","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"RwLock","correct":"use async_rwlock::RwLock;"}],"quickstart":{"code":"use async_rwlock::RwLock;\n\n#[tokio::main]\nasync fn main() {\n    let lock = RwLock::new(42);\n    let read = lock.read().await;\n    println!(\"Value: {}\", *read);\n}","lang":"rust","description":"Creates an async RwLock and acquires a read lock."},"warnings":[{"fix":"Add tokio as a dependency and use #[tokio::main] or another async runtime.","message":"Requires an async runtime (e.g., tokio) to use .await.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'async':1,3,8 'concurr':10 'lock':7,9 'reader':5,12 'reader-writ':4,11 'rwlock':2 'writer':6,13","created_at":"2026-06-17T16:40:30.788371+00:00","updated_at":"2026-06-17T16:40:30.788371+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/stjepang/async-lock","github":"https://github.com/stjepang/async-lock","docs":"https://docs.rs/async-rwlock/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}