I'd say so, yes. Probably block expression helps more if you need to do a few operations on the unlocked value while it is still borrowed. Or if you would like to combine multiple unlocks, but you want to limit the scope for no longer than necessary.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Will
let a = *a.read().await;
do?I'd say so, yes. Probably block expression helps more if you need to do a few operations on the unlocked value while it is still borrowed. Or if you would like to combine multiple unlocks, but you want to limit the scope for no longer than necessary.