std::sync::RwLock
vs tokio::sync::RwLock
for shared state
#2270
jjangga0214
started this conversation in
General
Replies: 1 comment
-
See Which kind of mutex should you use from tokio's docs. The same applies to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In this shared state example,
std::sync::RwLock
is used instead oftokio::sync::RwLock
.Is there a specific reason?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions