Interface IAsyncCursor<TDocument>
Represents an asynchronous cursor.
public interface IAsyncCursor<out TDocument> : IDisposable
Type Parameters
TDocument
The type of the document.
- Inherited Members
- Extension Methods
Properties
Current
Gets the current batch of documents.
IEnumerable<out TDocument> Current { get; }
Property Value
- IEnumerable<TDocument>
The current batch of documents.
Methods
MoveNext(CancellationToken)
Moves to the next batch of documents.
bool MoveNext(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- bool
Whether any more documents are available.
MoveNextAsync(CancellationToken)
Moves to the next batch of documents.
Task<bool> MoveNextAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.