public void OnNext(TLeft value) { if (parent.hasLatest) { var result = default(TResult); try { result = parent.parent.selector(value, parent.latestValue); } catch (Exception ex) { lock (parent.gate) { parent.OnError(ex); } return; } lock (parent.gate) { parent.OnNext(result); } } }
public void OnError(Exception error) { lock (parent.gate) { parent.OnError(error); } }