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
source
IQueryable<TSource>The sequence to return elements from.
cancellationToken
CancellationToken The cancellation token.
Returns
- IAsync
Cursor <TSource> A cursor to the results of executing the LINQ query.
Type Parameters
TSource
The type of the elements of
source
.