MCPcopy Index your code
hub / github.com/smol-rs/async-lock

github.com/smol-rs/async-lock @v3.4.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.4.2 ↗ · + Follow
189 symbols 514 edges 14 files 40 documented · 21% 23 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

async-lock

Build License Cargo Documentation

Async synchronization primitives.

This crate provides the following primitives:

  • Barrier - enables tasks to synchronize all together at the same time.
  • Mutex - a mutual exclusion lock.
  • RwLock - a reader-writer lock, allowing any number of readers or a single writer.
  • Semaphore - limits the number of concurrent operations.

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 111
Function 49
Class 26
Enum 2
Interface 1

Languages

Rust100%

Modules by API surface

src/rwlock.rs42 symbols
tests/rwlock.rs26 symbols
src/once_cell.rs24 symbols
src/mutex.rs24 symbols
src/rwlock/raw.rs17 symbols
src/semaphore.rs14 symbols
tests/semaphore.rs12 symbols
tests/mutex.rs9 symbols
src/barrier.rs9 symbols
src/lib.rs5 symbols
src/rwlock/futures.rs3 symbols
tests/barrier.rs2 symbols

For agents

$ claude mcp add async-lock \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page