Concurrent, non-blocking lazy initialization of values.
- Rust 100%
| examples | async init methods | |
| src | fix cell initialization on dropped futures | |
| .gitignore | initial commit | |
| Cargo.lock | bump version | |
| Cargo.toml | bump version | |
| LICENSE | license | |
| README.md | readme | |
init_once
The init_once crate provides a mechanic to attempt to read a value without
blocking the caller, in case it is being initialized concurrently. Such an
abstraction might be useful in cache implementations whose consumers might
not want to block on the cache to fill up with data.