pub fn bimap<IN1: Element, IN2: Element, OUT: Element>(
upstream1: Rc<dyn Stream<IN1>>,
upstream2: Rc<dyn Stream<IN2>>,
func: impl Fn(IN1, IN2) -> OUT + 'static,
) -> Rc<dyn Stream<OUT>>Expand description
Maps two Streams into one using thr supplied function. Ticks when either of it’s sources ticks.