Is using an std::mpsc::channel the right choice for communicating with generators?


In Python, generators have a send method which can be used to send a value to a generator. Can I emulate the same thing with channels? Are there any downsides to using channels if I not using it for communication between threads?