AsyncEnumeratorBase<TSource, TResult> Class
Assembly: cs.temp.dll.dll
public abstract class AsyncEnumeratorBase<TSource, TResult> : MoveNextSource, IUniTaskSource<bool>, IUniTaskSource, IUniTaskAsyncEnumerator<TResult>, IUniTaskAsyncDisposable
Inheritance
System.Object →
MoveNextSource →
AsyncEnumeratorBase<TSource, TResult>
Type Parameters
TSource
TResult
Members
Constructors
Fields
Properties
Methods
Constructors
AsyncEnumeratorBase(IUniTaskAsyncEnumerable<TSource>, CancellationToken)
public AsyncEnumeratorBase(IUniTaskAsyncEnumerable<TSource> source, CancellationToken cancellationToken)
Fields
cancellationToken
protected CancellationToken cancellationToken
Field Value
- System.Threading.CancellationToken
Properties
Current
public TResult Current { get; protected set; }
SourceCurrent
protected TSource SourceCurrent { get; }
Methods
DisposeAsync()
public virtual UniTask DisposeAsync()
MoveNextAsync()
public UniTask<bool> MoveNextAsync()
OnFirstIteration()
protected virtual bool OnFirstIteration()
SourceMoveNext()
protected void SourceMoveNext()
TryMoveNextCore(Boolean, out Boolean)
If return value is false, continue source.MoveNext.
protected abstract bool TryMoveNextCore(bool sourceHasCurrent, out bool result)
Parameters
sourceHasCurrent
System.Boolean
result
System.Boolean
Implements