Skip to content

Conversation

@conectado
Copy link

The way that this paragraph is written right now it makes it seem that tokio::sync::Mutex::lock will block the executor even if the function is async.

As clarified here, this is not the case and the intention of the paragraph is to mention, instead, that this kind of mutex isn't more performant.

Personally, this paragraph has confused me on this behavior in the past. I'm not sure if the wording I used is the best to capture the original intention but I'd like if it can be updated.

Thanks!

…utex`"

Regarding to how the synchronous and asynchronous `Mutex` behave with the executor.
@conectado conectado changed the title clarify paragraph in "On using std::sync::Mutex and tokio::sync::Mutex clarify paragraph in "On using std::sync::Mutex and tokio::sync::Mutex" Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant