coalesced_map

Crates.iocoalesced_map
lib.rscoalesced_map
version0.1.2
created_at2025-08-12 14:44:51.246918+00
updated_at2025-09-05 15:13:30.601268+00
descriptionA thread-safe, deduplicating map that ensures expensive computations are executed only once per key
homepagehttps://github.com/conda/rattler
repositoryhttps://github.com/conda/rattler
max_upload_size
id1792084
size41,604
Bas Zalmstra (baszalmstra)

documentation

README

coalesced_map

Crates.io Documentation Build Status License

A thread-safe, deduplicating map that ensures expensive computations are executed only once per key, even when multiple concurrent requests are made.

This map is designed for scenarios where multiple async tasks might request the same resource simultaneously. Instead of performing duplicate work, the CoalescedMap ensures that only the first request for a given key executes the initialization function, while subsequent concurrent requests wait for and receive the same result.

Commit count: 1391

cargo fmt