Can you recommend a crate that has a good concurrent hashmap implementation that allows to do an atomic "insert if not exists" operation?
I recommend dashmap.
How do I do "insert if not exists" atomically in
try_entry() then or_insert() should do it.
Ok, thanks, when reading the docs, it wasn't apparent to me that getting an
entry actually locks it.