slimp/node_modules/peek-readable/lib/Deferred.js
2023-06-12 11:40:38 -04:00

11 lines
261 B
JavaScript

export class Deferred {
constructor() {
this.resolve = () => null;
this.reject = () => null;
this.promise = new Promise((resolve, reject) => {
this.reject = reject;
this.resolve = resolve;
});
}
}