| Crates.io | coalesced_map |
| lib.rs | coalesced_map |
| version | 0.1.2 |
| created_at | 2025-08-12 14:44:51.246918+00 |
| updated_at | 2025-09-05 15:13:30.601268+00 |
| description | A thread-safe, deduplicating map that ensures expensive computations are executed only once per key |
| homepage | https://github.com/conda/rattler |
| repository | https://github.com/conda/rattler |
| max_upload_size | |
| id | 1792084 |
| size | 41,604 |
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.