Method AnyAsync
AnyAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Determines whether the cursor contains any documents.
public static Task<bool> AnyAsync<TDocument>(this IAsyncCursor<TDocument> cursor, CancellationToken cancellationToken = default)
Parameters
cursorIAsyncCursor<TDocument>The cursor.
cancellationTokenCancellationTokenThe cancellation token.
Returns
Type Parameters
TDocumentThe type of the document.