Files
evento/node_modules/strtok3/lib/stream/Deferred.js
2026-03-18 14:55:56 -03: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;
});
}
}