An Async Iterable snapshot stream. Each entry will be a SnapshotResult that may or may not contain a SnapshotMessage.
setCallbackHandler(handler?: ISnapshotHandler): void
Set a callback handler.
handler?: ISnapshotHandler
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<SnapshotResult, any>>
Advance iterator to next partial response.
Promise<IteratorResult<SnapshotResult, 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>