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