securityos/node_modules/peek-readable/lib/Deferred.js

11 lines
261 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
export class Deferred {
constructor() {
this.resolve = () => null;
this.reject = () => null;
this.promise = new Promise((resolve, reject) => {
this.reject = reject;
this.resolve = resolve;
});
}
}