public async Task<YieldStreamResults> SetResultAsync(StreamResult response, CancellationToken token = default) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: false, isAsync: true, _statistics, token); await enumerator.InitializeAsync().ConfigureAwait(false); return enumerator; }
public async Task <IAsyncEnumerator <BlittableJsonReaderObject> > SetResultAsync(StreamResult response) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isAsync: true, _statistics); await enumerator.InitializeAsync().ConfigureAwait(false); return(enumerator); }
internal async Task<YieldStreamResults> SetResultForTimeSeriesAsync(StreamResult response) { var enumerator = new YieldStreamResults(_session, response, _isQueryStream, isTimeSeriesStream: true, isAsync: true, _statistics); await enumerator.InitializeAsync().ConfigureAwait(false); return enumerator; }