Crate async_oncecell[][src]

Asynchronous implementation of OnceCell and Lazy.

This package provides an asynchronous implementation of OnceCell and Lazy, which is usefull in cases where you would like to instantiate these cells with asynchronous code.

This package is currently still in development and should not be used in production code. While heavily inspired by existing OnceCell packages, it should not be seen as safe. My understanding of unsafe Rust is still rudimentary, and while I have done my best to justify the unsafe code in this crate, I currently do not have the knowledge to fully do so.

Structs

Lazy

Lazy cell which is only instantiated upon first retreival of contained value

OnceCell

Cell which can be lazy instantiated with an asynchronous block and is safely share-able between threads.