exocore
exocore copied to clipboard
Switch to parking_lot or tokio mutex
When we don't need async, switch to parking_lot's primitives as they don't need to be unwrapped since they panic on poising instead. parking_lot's RWLock also allows upgrading a read lock to write.
When we need async, we should use Tokio's primitives.