Skip to main content

arc_mutex

Macro arc_mutex 

Source
macro_rules! arc_mutex {
    ($e:expr) => { ... };
}
Expand description

Wraps an expression in an Arc<tokio::sync::Mutex<T>>. The go-to pattern for shared mutable state in async Axum/Tokio apps.