no method named `take_until` found for type `futures_channel::mpsc::UnboundedReceiver<()>` in the current scope
mikecaines opened this issue · comments
Mike Caines commented
I'm running into this error during migration from futures 0.1 to 0.3. It can be reproduced by the below code. Any thoughts? I'm not sure if it is actually a stream-cancel issue, or if there is just some new thing I need to do with futures 0.3.
fn main() {
use stream_cancel::StreamExt;
let (tx, rx) = futures::channel::mpsc::unbounded::<()>();
let (trigger, tripwire) = stream_cancel::Tripwire::new();
let rx = rx.take_until(tripwire);
}
Jon Gjengset commented
Yeah, until the next tokio
release that uses futures 0.3.0
, you will have to use the futures-preview 0.3.0-alpha
crates :)