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