IFulltext SessionQuery Future AsyncTDocument, TResult(IPrepared QueryTDocument, TResult, Cancellation Token) Method
Get an asynchronously, lazily initialized list of results for the provided prepated query instance. Accessing the results will trigger the execution of all
pending future results as a batch of asynchronous queries in a single roundtrip to searchd.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
A lazily initialized list of results for the query.
A task representing the asynchronous operation.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
Lazy<Task<IList<TResult>>> QueryFutureAsync<TDocument, TResult>(
IPreparedQuery<TDocument, TResult> preparedQuery,
CancellationToken cancellationToken
)
VB
Function QueryFutureAsync(Of TDocument, TResult) (
preparedQuery As IPreparedQuery(Of TDocument, TResult),
cancellationToken As CancellationToken
) As Lazy(Of Task(Of IList(Of TResult)))Parameters
- preparedQuery IPreparedQueryTDocument, TResult
- The prepared query instance to schedule for execuction.
- cancellationToken CancellationToken
- The token to monitor for cancellation requests.
Type Parameters
- TDocument
- The type of document to execute a prepared query for.
- TResult
- The type of the result to return.
Return Value
LazyTaskIListTResultA lazily initialized list of results for the query.
A task representing the asynchronous operation.