Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ozgrakkurt
7mo ago
0 comments
Share
If I remember correctly tokio Mutex docs mentions you should use std Mutex unless you are holding the lock across an await
0 comments
default
newest
oldest
pwdisswordfishz
7mo ago
Which is exactly what happens here!
ozgrakkurt
OP
7mo ago
That section looks like a cut out version of a pseudo code more than actual code.
He could have mem::dropped the lock 50 lines before the await point
j
/
k
navigate · click thread line to collapse