Method ToCollectionAsync
ToCollectionAsync(CancellationToken)
Executes an aggregation pipeline that writes the results to a collection.
Task ToCollectionAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A Task.