Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ozgrakkurt
3 months ago
|
parent
|
context
|
favorite
| on:
Unexpected productivity boost of Rust
If I remember correctly tokio Mutex docs mentions you should use std Mutex unless you are holding the lock across an await
pwdisswordfishz
3 months ago
[–]
Which is exactly what happens here!
ozgrakkurt
3 months ago
|
parent
[–]
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: