With this and something like std::thread::spawn(|| transcode(tx)) // no join here!!!, we can pull the data as soon as it is available. Which is a lot better than waiting for processing ends.
Do you think we should add this example to somewhere in the doc @ldm0 ?
Although I've add some getter for the data, I ended up using this where
Sender/Receiver
is from a channel crate of your choice.With this and something like
std::thread::spawn(|| transcode(tx)) // no join here!!!
, we can pull the data as soon as it is available. Which is a lot better than waiting for processing ends.Do you think we should add this example to somewhere in the doc @ldm0 ?