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