MCPcopy Index your code
hub / github.com/danieldg/async-once-cell

github.com/danieldg/async-once-cell @v0.5.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.4 ↗ · + Follow
55 symbols 95 edges 1 files 26 documented · 47%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Crates.io API reference

Overview

async_once_cell is a version of once_cell that adds support for async initialization of cells. The short version of the API is:

impl OnceCell<T> {
    fn new() -> OnceCell<T>;
    fn get(&self) -> Option<&T>;
    async fn get_or_init(&self, init: impl Future<Output=T>) -> &T;
}

More patterns and use-cases are in the docs!

Core symbols most depended-on inside this repo

get_mut
called by 20
src/lib.rs
get
called by 9
src/lib.rs
with_lock
called by 3
src/lib.rs
poll
called by 3
src/lib.rs
initialize
called by 2
src/lib.rs
set_ready
called by 2
src/lib.rs
poll_init
called by 2
src/lib.rs
take
called by 2
src/lib.rs

Shape

Method 27
Class 19
Function 7
Enum 2

Languages

Rust100%

Modules by API surface

src/lib.rs55 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page