Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Safe-threading and async HashMap
Hi!
I have such struct for example:
use tokio::sync::Mutex;
use create fxhash::FxHashMap;
struct StructWithState {
state: Arc<Mutex<FxHashMap<String, String>>> // Or DashMap without Mutex
}
I have different mutation in async way further and both DashMap and Mutex + FxHashMap have deadlocks and other things.
Could you please give me some advice what is a better to use in such case?
3 posts - 3 participants
🏷️ Rust_feed