2 ms·
In this video from August 2020, Jon Gjengset shows how an implementation of a multiple producers single consumer (mpsc) channel might work under the hood, and h
by codetrotter 5y ago
In this video from August 2020, Jon Gjengset shows how an implementation of a multiple producers single consumer (mpsc) channel might work under the hood, and he also talks a bit about various implementations and flavors. Along the way he also covers some primitives like Mutex and Condvar.
In the discussion towards the end he talks a bit about flume [1] and crossbeam [2] and when you might want to use one or the other of those. He also mentions tokio channels [3].
[1]: https://docs.rs/flume/latest/flume/ https://docs.rs/flume/latest/flume/
[2]: https://docs.rs/crossbeam/latest/crossbeam/ https://docs.rs/crossbeam/latest/crossbeam/
[3]: https://docs.rs/tokio/1.17.0/tokio/sync/index.html#message-passing https://docs.rs/tokio/1.17.0/tokio/sync/index.html#message-p...