pub fn until_stream<T, U, S: Stream<Item = T> + Unpin, Stop: Stream<Item = U> + Unpin>( stop: Stop, source: S, ) -> impl Stream<Item = T>
Emit from source until stop stream emits. Runtime-agnostic using futures::select!