In Python, there is an atomic message queue module (
Queue) mainly used to send “emails” between threads, as explained by Raymond Hettinger in his talk. Using atomic message queues makes code much easier to maintain.
Queue is an awesome concurrency tool.
I wonder if there is a Rust equivalent. Googling “rust atomic message queue” comes up with nothing relevant. The mpsc module seems similar but the API looks different. Does Rust include a built-in atomic message queue, or does one has to implement it?