@speckle/objectloader2
Version:
This is an updated objectloader for the Speckle viewer written in typescript
51 lines • 1.6 kB
JavaScript
import BatchingQueue from './batchingQueue.js';
export class CacheReader {
constructor(database, defermentManager, options) {
this.
this.
this.
this.
}
async getObject(params) {
if (!this.
this.
}
return await this.
}
if (!this.
this.
batchSize: this.
maxWaitTime: this.
processFunction: this.
});
}
if (!this.
this.
}
}
async getAll(keys) {
return this.
}
const items = await this.
for (let i = 0; i < items.length; i++) {
if (items[i]) {
this.
}
else {
//this is okay!
//this.#logger(`Item ${batch[i]} not found in cache`)
}
}
};
async disposeAsync() {
await this.
}
}
//# sourceMappingURL=cacheReader.js.map