use super::ConcurrentStream;
pub trait IntoConcurrentStream {
type Item;
type IntoConcurrentStream: ConcurrentStream<Item = Self::Item>;
fn into_co_stream(self) -> Self::IntoConcurrentStream;
}
impl<S: ConcurrentStream> IntoConcurrentStream for S {
type Item = S::Item;
type IntoConcurrentStream = S;
fn into_co_stream(self) -> Self::IntoConcurrentStream {
self
}
}