示例#1
0
 public SwitchCaseCondition(bool isUnsafe, Awaiter <T> awaiter)
 {
     this.isUnsafe          = isUnsafe;
     this.cancellationToken = default;
     this.continuation      = default;
     this.innerAwaiter      = awaiter;
     this.state             = awaiter.IsCompleted ? 1 : 0;
 }
示例#2
0
 public SwitchCase(ISwitchCaseCondition cond, Awaiter <T> awaiter)
 => (this.cond, this.awaiter) = (cond, awaiter);