2 ms·
It doesn't. It prevents data races. (But that said, there was some experimentation a couple of years ago with "channel contracts" in Rust, which allow you to s
by pcwalton 13y ago
It doesn't. It prevents data races.
(But that said, there was some experimentation a couple of years ago with "channel contracts" in Rust, which allow you to solve that problem in many scenarios by explicitly enumerating the state transitions in your channel. We have the mechanisms still in place to do this as a library if we want to.)