An Async Iterable query stream. Each entry will be a QueryResult that may or may not contain a QueryMessage.
setCallbackHandler(handler?: IQueryHandler): void
Set a callback handler.
handler?: IQueryHandler
the callback handlervoid
delete(): void
Delete the handle. This will close the stream and dispose of the resources used by it.
void
isDeleted(): boolean
Has the handle been deleted?
boolean
next(): Promise<IteratorResult<QueryResult, any>>
Advance iterator to next partial response.
Promise<IteratorResult<QueryResult, any>>
[asyncIterator](): AsyncIterableIterator<T>
A stream handle object that will iterate through Stream Messages. If a StatusCode is returned then this will indicate the cause of an error that may be recoverable. If this stream recovers the api will handle the recovery automatically.
AsyncIterableIterator<T>