public void OnCompleted() { if (won) { downstream.OnCompleted(); } else if (parent.TryWin(index)) { won = true; downstream.OnCompleted(); } Dispose(); }
public void OnCompleted() { if (iwon) { downstream.OnCompleted(); } else if (parent.TryWin(isLeft)) { iwon = true; downstream.OnCompleted(); } Dispose(); }
public override void OnCompleted() { if (_iwon) { ForwardOnCompleted(); } else if (_parent.TryWin(_isLeft)) { _iwon = true; ForwardOnCompleted(); } else { Dispose(); } }