From 11ee3c149e2fa6f1bd434ef3fc4d7ad1253ad306 Mon Sep 17 00:00:00 2001 From: Matilda Smeds Date: Mon, 20 May 2024 13:40:33 +0200 Subject: [PATCH] Remove link to dashmap Dashmap seems to be a bit risky to use with tokio. Yet, according to observations on Tokio Discord: people keep trying, and maintainers keep recommending against. I think ideally we would not link to this crate from tokio docs. --- content/tokio/tutorial/shared-state.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/content/tokio/tutorial/shared-state.md b/content/tokio/tutorial/shared-state.md index 7873dcb8..4bc64f2e 100644 --- a/content/tokio/tutorial/shared-state.md +++ b/content/tokio/tutorial/shared-state.md @@ -211,11 +211,9 @@ shard.insert(key, value); The simple implementation outlined above requires using a fixed number of shards, and the number of shards cannot be changed once the sharded map is -created. The [dashmap] crate provides an implementation of a more sophisticated -sharded hash map. +created. [current_thread]: https://docs.rs/tokio/1/tokio/runtime/index.html#current-thread-scheduler -[dashmap]: https://docs.rs/dashmap # Holding a `MutexGuard` across an `.await`