UNPKG

@instantdb/core

Version:

Instant's core local abstraction

15 lines 344 B
export class Deferred { constructor() { this.promise = new Promise((resolve, reject) => { this._resolve = resolve; this._reject = reject; }); } resolve(value) { this._resolve(value); } reject(reason) { this._reject(reason); } } //# sourceMappingURL=Deferred.js.map