Crates.io | init-once |
lib.rs | init-once |
version | 0.6.0 |
source | src |
created_at | 2024-07-26 16:28:46.219006 |
updated_at | 2024-08-04 12:26:45.476323 |
description | Concurrent, non-blocking lazy initialization of values. |
homepage | https://codeberg.org/sugo/init_once |
repository | https://codeberg.org/sugo/init_once |
max_upload_size | |
id | 1316395 |
size | 32,136 |
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.