ToEnumerableAsync<TDocument>(IAsyncCursorSource<TDocument>, CancellationToken)

public static async Task<IEnumerable<TDocument>> ToEnumerableAsync<TDocument>(IAsyncCursorSource<TDocument> source, CancellationToken cancellationToken)
Returns:
Task<IEnumerable<TDocument>>

Parameters

source IAsyncCursorSource<TDocument>
cancellationToken CancellationToken

Type Parameters

TDocument

ToEnumerableAsync<TDocument>(IAsyncCursor<TDocument>, CancellationToken)

public static async Task<IEnumerable<TDocument>> ToEnumerableAsync<TDocument>(IAsyncCursor<TDocument> source, CancellationToken cancellationToken)
Returns:
Task<IEnumerable<TDocument>>

Parameters

source IAsyncCursor<TDocument>
cancellationToken CancellationToken

Type Parameters

TDocument
In this article