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

#125 in Caching

Download history 1116/week @ 2024-11-29 972/week @ 2024-12-06 1090/week @ 2024-12-13 283/week @ 2024-12-20 280/week @ 2024-12-27 335/week @ 2025-01-03 462/week @ 2025-01-10 618/week @ 2025-01-17 527/week @ 2025-01-24 838/week @ 2025-01-31 1231/week @ 2025-02-07 1831/week @ 2025-02-14 1737/week @ 2025-02-21 1389/week @ 2025-02-28 2242/week @ 2025-03-07 924/week @ 2025-03-14

6,533 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