Registry / async / async-once-cell

async-once-cell

JSON →
library0.5.4rscratesunverified

Async single assignment cells and lazy values for Rust.

# Cargo.toml [dependencies] async-once-cell = "0.5.4"
INSTALL
IMPORT
SIG · ASYNC-ONCE-CELL
A
async-once-cell
asyncrustv0.5.4
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.

OnceCell
use async_once_cell::OnceCell;

Create and use an async-compatible OnceCell.

use async_once_cell::OnceCell; use std::future::Future; let cell = OnceCell::new(); cell.set(42).unwrap(); assert_eq!(cell.get(), Some(&42));
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
34
Resources
async-once-cell — cargo add async-once-cell · libregistry