AsyncEnumeratorAwaitSelectorBase<TSource, TResult, TAwait> Class
Assembly: cs.temp.dll.dll
public abstract class AsyncEnumeratorAwaitSelectorBase<TSource, TResult, TAwait> : MoveNextSource, IUniTaskSource<bool>, IUniTaskSource, IUniTaskAsyncEnumerator<TResult>, IUniTaskAsyncDisposable
Inheritance
System.Object →
MoveNextSource →
AsyncEnumeratorAwaitSelectorBase<TSource, TResult, TAwait>
Type Parameters
TSource
TResult
TAwait
Members
Constructors
Fields
Properties
Methods
Constructors
AsyncEnumeratorAwaitSelectorBase(IUniTaskAsyncEnumerable<TSource>, CancellationToken)
public AsyncEnumeratorAwaitSelectorBase(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
ActionCompleted(Boolean, out Boolean)
protected (bool waitCallback, bool requireNextIteration) ActionCompleted(bool trySetCurrentResult, out bool moveNextResult)
Parameters
trySetCurrentResult
System.Boolean
moveNextResult
System.Boolean
Returns
- System.ValueTuple<System.Boolean, System.Boolean>
DisposeAsync()
public virtual UniTask DisposeAsync()
IterateFinished(out Boolean)
protected (bool waitCallback, bool requireNextIteration) IterateFinished(out bool moveNextResult)
Parameters
moveNextResult
System.Boolean
Returns
- System.ValueTuple<System.Boolean, System.Boolean>
MoveNextAsync()
public UniTask<bool> MoveNextAsync()
SourceMoveNext()
protected void SourceMoveNext()
protected abstract UniTask<TAwait> TransformAsync(TSource sourceCurrent)
Parameters
sourceCurrent
TSource
TrySetCurrentCore(TAwait, out Boolean)
protected abstract bool TrySetCurrentCore(TAwait awaitResult, out bool terminateIteration)
Parameters
awaitResult
TAwait
terminateIteration
System.Boolean
UnwarapTask(UniTask<TAwait>, out TAwait)
protected bool UnwarapTask(UniTask<TAwait> taskResult, out TAwait result)
Parameters
taskResult
UniTask<TAwait>
result
TAwait
WaitAwaitCallback(out Boolean)
protected (bool waitCallback, bool requireNextIteration) WaitAwaitCallback(out bool moveNextResult)
Parameters
moveNextResult
System.Boolean
Returns
- System.ValueTuple<System.Boolean, System.Boolean>
Implements