Crate bonsaidb_utils
source ·Macros
- Acquires an
async-lock::Mutexby first attemptingtry_lock()and then falling back onlock().await. This is proven to be faster than simply callinglock().awaitin our benchmarks. - Acquires a read handle to an
async-lock::RwLockby first attemptingtry_read()and then falling back onread().await. This is proven to be faster than simply callingread().awaitin our benchmarks. - Acquires a write handle to an
async-lock::RwLockby first attemptingtry_write()and then falling back onwrite().await. This is proven to be faster than simply callingwrite().awaitin our benchmarks.