3 ms·
async mutexes? > Contrary to popular belief, it is ok and often preferred to use the ordinary Mutex from the standard library in asynchronous code. > The feat
by tcfhgj 2y ago
async mutexes?
> Contrary to popular belief, it is ok and often preferred to use the ordinary Mutex from the standard library in asynchronous code.
> The feature that the async mutex offers over the blocking mutex is the ability to keep it locked across an .await point.
https://docs.rs/tokio/latest/tokio/sync/struct.Mutex.html https://docs.rs/tokio/latest/tokio/sync/struct.Mutex.html