This repository has been archived on 2025-02-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
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;
});
}
}