locking
ModuleSerialised access to a shared connection.
Contents
use utopia_queue::connection::locking::Locking;Rust
pub struct Locking<C, L = Mutex>Wraps a Connection and runs every command behind one lock, so tasks
sharing the connection cannot interleave on it. The lock is waited on
forever: a command is never dropped because the connection is busy.
Rust
use utopia_queue::connection::{Locking, Redis};
let shared = Locking::new(Redis::new("localhost", 6379));