8 releases (5 breaking)

0.6.0 Aug 4, 2024
0.5.1 Aug 2, 2024
0.4.3 Aug 1, 2024
0.3.0 Jul 26, 2024
0.1.1 Jul 26, 2024

#116 in Caching

Download history 687/week @ 2024-11-20 1122/week @ 2024-11-27 879/week @ 2024-12-04 1231/week @ 2024-12-11 473/week @ 2024-12-18 287/week @ 2024-12-25 238/week @ 2025-01-01 460/week @ 2025-01-08 578/week @ 2025-01-15 534/week @ 2025-01-22 625/week @ 2025-01-29 1251/week @ 2025-02-05 1601/week @ 2025-02-12 1690/week @ 2025-02-19 1543/week @ 2025-02-26 2118/week @ 2025-03-05

7,255 downloads per month
Used in 10 crates (via namada_sdk)

MIT license

19KB
377 lines

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.


lib.rs:

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.

Dependencies

~1MB
~19K SLoC