public void Subscribe(ISignalObserver <T> observer) { var parent = new RepeatPredicteObserver(observer, source, predicate); observer.OnSubscribe(parent); parent.Next(); }
public IDisposable Subscribe(IObserver <T> observer) { var parent = new RepeatPredicteObserver(observer, source, predicate); parent.Next(); return(parent); }
public void Subscribe(ISignalObserver <T> observer) { if (times == 0) { source.Subscribe(new ObservableSourceTake <T> .TakeObserver(observer, 0)); return; } var parent = new RepeatPredicteObserver(observer, source, times); observer.OnSubscribe(parent); parent.Next(); }