Class SinkQueueAsyncEnumerator<T>
Wraps a Sink Queue and Killswitch around IAsyncEnumerator<T>
Inherited Members
Namespace: Akka.Streams.Dsl
Assembly: Akka.Streams.dll
Syntax
public sealed class SinkQueueAsyncEnumerator<T> : IAsyncEnumerator<T>, IAsyncDisposable
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
| Edit this page View SourceSinkQueueAsyncEnumerator((UniqueKillSwitch killSwitch, ISinkQueue<T> sinkQueue), CancellationToken)
Declaration
public SinkQueueAsyncEnumerator((UniqueKillSwitch killSwitch, ISinkQueue<T> sinkQueue) queueAndSwitch, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| (UniqueKillSwitch killSwitch, ISinkQueue<T> sinkQueue) | queueAndSwitch | |
| CancellationToken | token |
Properties
| Edit this page View SourceCurrent
Gets the element in the collection at the current position of the enumerator.
Declaration
public T Current { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
| Edit this page View SourceDisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
Declaration
public ValueTask DisposeAsync()
Returns
| Type | Description |
|---|---|
| ValueTask |
MoveNextAsync()
Advances the enumerator asynchronously to the next element of the collection.
Declaration
public ValueTask<bool> MoveNextAsync()
Returns
| Type | Description |
|---|---|
| ValueTask<bool> | A ValueTask<TResult> that will complete with a result of |
Edit this page