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