Practice
Learn
← Quit
0 / 0 correct
Rust
Hard
1 of 345
When should you prefer tokio::sync::Mutex over std::sync::Mutex in async code?
A
Never; tokio's mutex is deprecated
B
When data is Copy
C
Only when the lock must be held across an .await; otherwise a std Mutex held briefly is faster
D
Always in async code