Table of Contents

Class DeferredAsyncCursor<TDocument>

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

Represents a cursor for an operation that is not actually executed until MoveNextAsync is called for the first time.

public sealed class DeferredAsyncCursor<TDocument> : IAsyncCursor<TDocument>, IDisposable

Type Parameters

TDocument

The type of the document.

Inheritance
DeferredAsyncCursor<TDocument>
Implements
IAsyncCursor<TDocument>
Inherited Members
Extension Methods

Constructors

DeferredAsyncCursor(Action, Func<CancellationToken, IAsyncCursor<TDocument>>, Func<CancellationToken, Task<IAsyncCursor<TDocument>>>)

Initializes a new instance of the DeferredAsyncCursor<TDocument> class.

Properties

Current

Gets the current batch of documents.

Methods

Dispose()
MoveNext(CancellationToken)

Moves to the next batch of documents.

MoveNextAsync(CancellationToken)

Moves to the next batch of documents.