Macro bonsaidb_utils::fast_async_read
source · macro_rules! fast_async_read { ($rwlock:expr) => { ... }; }
Expand description
Acquires a read handle to an async-lock::RwLock by first attempting
try_read() and then falling back on read().await. This is proven to be
faster than simply calling read().await in our
benchmarks.