Method Any
Any<TDocument>(IAsyncCursor<TDocument>, CancellationToken)
Determines whether the cursor contains any documents.
public static bool Any<TDocument>(this IAsyncCursor<TDocument> cursor, CancellationToken cancellationToken = default)
Parameters
cursor
IAsyncCursor<TDocument>The cursor.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- bool
True if the cursor contains any documents.
Type Parameters
TDocument
The type of the document.