Method ToCursor
ToCursor<TSource>(IQueryable<TSource>, CancellationToken)
Executes the LINQ query and returns a cursor to the results.
public static IAsyncCursor<TSource> ToCursor<TSource>(this IQueryable<TSource> source, CancellationToken cancellationToken = default)
Parameters
sourceIQueryable<TSource>The sequence to return elements from.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- IAsyncCursor<TSource>
A cursor to the results of executing the LINQ query.
Type Parameters
TSourceThe type of the elements of
source.