UNPKG

@speckle/objectloader2

Version:

This is an updated objectloader for the Speckle viewer written in typescript

23 lines 458 B
export class DeferredBase { promise; resolve; reject; id; constructor(id) { this.id = id; this.promise = new Promise((resolve, reject) => { this.resolve = resolve; this.reject = reject; }); } getId() { return this.id; } getPromise() { return this.promise; } found(value) { this.resolve(value); } } //# sourceMappingURL=deferredBase.js.map