Function arc_mutex
Source pub fn arc_mutex<T>(data: T) -> Arc<Mutex<T>> ⓘ
Expand description
Creates a new Arc<Mutex<T>> from the given data.
§Arguments
T - The data to be wrapped in an Arc<Mutex<T>>.
§Returns
Arc<Mutex<T>> - An Arc<Mutex<T>> containing the provided data.