3 ms·
You can use async/await with channels and restrict yourself to only passing immutable references or copy types through arguments to async functions, communicati
by efficax 3y ago
You can use async/await with channels and restrict yourself to only passing immutable references or copy types through arguments to async functions, communicating w/ channels for mutable shared types. Like you could build Erlang style "servers" that own your mutable types and communicate with them over channels. Or you can Arc<Mutex<T>> your way through things. Rust gives you the power to do both.