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

#299 in Concurrency

Download history 566/week @ 2024-07-29 81/week @ 2024-08-05 65/week @ 2024-08-12 328/week @ 2024-08-19 360/week @ 2024-08-26 486/week @ 2024-09-02 573/week @ 2024-09-09 218/week @ 2024-09-16 270/week @ 2024-09-23 263/week @ 2024-09-30 288/week @ 2024-10-07 209/week @ 2024-10-14 173/week @ 2024-10-21 297/week @ 2024-10-28 517/week @ 2024-11-04 549/week @ 2024-11-11

1,545 downloads per month

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
~18K SLoC