Rewrite a flow test

This commit is contained in:
Carl Lerche
2017-09-08 13:42:14 -07:00
parent 16f0345c16
commit daa54b9512
2 changed files with 22 additions and 35 deletions

View File

@@ -335,6 +335,12 @@ pub trait HandleFutureExt {
frame: Some(frame.into()),
}
}
fn close(self) -> Box<Future<Item=(), Error=()>>
where Self: Future<Error = ()> + Sized + 'static,
{
Box::new(self.map(drop))
}
}
pub struct RecvFrame<T> {