44 TSource val =
default(TSource);
45 TKey
val2 =
default(TKey);
53 if ((num++ & 0
x3F) == 0)
67 _operatorState._key =
val2;
150 [
ExcludeFromCodeCoverage(Justification =
"This method should never be called as fallback to sequential is handled in ParallelEnumerable.First()")]
CancellationToken MergedCancellationToken
readonly int _partitionId
FirstQueryOperatorEnumerator(QueryOperatorEnumerator< TSource, TKey > source, Func< TSource, bool > predicate, FirstQueryOperatorState< TKey > operatorState, CountdownEvent sharedBarrier, CancellationToken cancellationToken, IComparer< TKey > keyComparer, int partitionId)
readonly CancellationToken _cancellationToken
override bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TSource currentElement, ref int currentKey)
readonly QueryOperatorEnumerator< TSource, TKey > _source
readonly FirstQueryOperatorState< TKey > _operatorState
readonly IComparer< TKey > _keyComparer
override void Dispose(bool disposing)
readonly CountdownEvent _sharedBarrier
readonly Func< TSource, bool > _predicate
override QueryResults< TSource > Open(QuerySettings settings, bool preferStriping)
override IEnumerable< TSource > AsSequentialQuery(CancellationToken token)
readonly bool _prematureMergeNeeded
override void WrapPartitionedStream< TKey >(PartitionedStream< TSource, TKey > inputStream, IPartitionedStreamRecipient< TSource > recipient, bool preferStriping, QuerySettings settings)
FirstQueryOperator(IEnumerable< TSource > child, Func< TSource, bool > predicate)
readonly Func< TSource, bool > _predicate
void WrapHelper< TKey >(PartitionedStream< TSource, TKey > inputStream, IPartitionedStreamRecipient< TSource > recipient, QuerySettings settings)
override bool LimitsParallelism
bool MoveNext([MaybeNullWhen(false)][AllowNull] ref TElement currentElement, [AllowNull] ref TKey currentKey)
CancellationState CancellationState
void ThrowIfCancellationRequested()