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; }
public SwitchCase(ISwitchCaseCondition cond, Awaiter <T> awaiter) => (this.cond, this.awaiter) = (cond, awaiter);