3 ms·
Rust has one form of channels in the standard library. More kinds available from crates.io. If you prefer channels, use them!
by steveklabnik 2y ago
Rust has one form of channels in the standard library. More kinds available from crates.io. If you prefer channels, use them!
- adastra22 2y agoBecause one crate uses one channel implementation, and another crate uses a different one… this is really something that should be solved at the language / stdlib level, as Go does, but Rust falls a little bit short. There mpmc and the Send trait, but they alone are insufficient. So instead we get crate dependency hell that is only somewhat mitigated by cargo, and colored functions due to the async implementation.