3 ms·
If I remember correctly tokio Mutex docs mentions you should use std Mutex unless you are holding the lock across an await
by ozgrakkurt 1y ago
If I remember correctly tokio Mutex docs mentions you should use std Mutex unless you are holding the lock across an await
- deleted 1y ago[deleted]
- pwdisswordfishz 1y agoWhich is exactly what happens here!
- ozgrakkurt 1y agoThat 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