Hi all. I apologize in advance if the question either has been discussed before (I couldn’t seem to google anything) or if it’s silly.
How about having a shorthand for
Arc<Mutex<T>> ? The rationale is that this particular combo seems to be used very often, but is quite verbose in both definition (
foo: Arc<Mutex<Foo>>) as well as creation (
let foo = Arc::new(Mutex::new(Foo::new(...)))).
There could be a wrapper named
Arx or similar, which could be a simple tuple struct dereferencing to the
Just an idea.