This repository has been archived on 2025-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
sidBot/sidBot-js/node_modules/peek-readable/lib/Deferred.js

10 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;
});
}
}