Method ToCursorAsync
ToCursorAsync(CancellationToken)
Executes the operation and returns a cursor to the results.
Task<IAsyncCursor<TDocument>> ToCursorAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<IAsyncCursor<TDocument>>
A Task whose result is a cursor.