public void Subscribe(ISignalObserver <R> observer) { var o = others; var n = o.Length; var parent = new WithLatestFromObserver(observer, n, mapper, delayErrors); observer.OnSubscribe(parent); if (sourceFirst) { source.Subscribe(parent); parent.SubscribeAll(o); } else { parent.SubscribeAll(o); source.Subscribe(parent); } }
public IDisposable Subscribe(IObserver <R> observer) { var o = others; var n = o.Length; var parent = new WithLatestFromObserver(observer, n, mapper, delayErrors); if (sourceFirst) { parent.OnSubscribe(source.Subscribe(parent)); parent.SubscribeAll(o); } else { parent.SubscribeAll(o); parent.OnSubscribe(source.Subscribe(parent)); } return(parent); }