示例#1
0
 public void OnCompleted()
 {
     if (won)
     {
         downstream.OnCompleted();
     }
     else
     if (parent.TryWin(index))
     {
         won = true;
         downstream.OnCompleted();
     }
     Dispose();
 }
示例#2
0
 public void OnCompleted()
 {
     if (iwon)
     {
         downstream.OnCompleted();
     }
     else
     if (parent.TryWin(isLeft))
     {
         iwon = true;
         downstream.OnCompleted();
     }
     Dispose();
 }
示例#3
0
文件: Amb.cs 项目: zyj10053/reactive
 public override void OnCompleted()
 {
     if (_iwon)
     {
         ForwardOnCompleted();
     }
     else if (_parent.TryWin(_isLeft))
     {
         _iwon = true;
         ForwardOnCompleted();
     }
     else
     {
         Dispose();
     }
 }