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