@itwin/insights-client
Version:
Insights client for the iTwin platform
18 lines • 538 B
JavaScript
import { EntityPageListIterator } from "./EntityPageListIterator";
import { flatten } from "./IteratorUtil";
export class EntityListIteratorImpl {
constructor(pageQueryFunc) {
this._entityPages = new EntityPageListIterator(pageQueryFunc);
this._entities = flatten(this._entityPages);
}
[Symbol.asyncIterator]() {
return this;
}
async next() {
return this._entities.next();
}
byPage() {
return this._entityPages;
}
}
//# sourceMappingURL=EntityListIteratorImpl.js.map