@itwin/imodels-client-management
Version:
iModels API client wrapper for applications that manage iModels.
24 lines • 913 B
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import { flatten } from "../../types";
import { EntityPageListIterator } from "./EntityPageListIterator";
export class EntityListIteratorImpl {
_entityPages;
_entities;
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