Skip to content

Commit

Permalink
Remove link to dashmap
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matildasmeds committed May 20, 2024
1 parent 98a1419 commit 11ee3c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions content/tokio/tutorial/shared-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 11ee3c1

Please sign in to comment.