"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExecutorResult=void 0;exports.ExecutorResult=class{constructor(){this.resolves=[],this.rejects=[],this.extraErrors=[]}isSuccess(){return!(this.rejects&&this.rejects.length||this.extraErrors&&this.extraErrors.length)}getResolves(){return this.resolves?this.resolves:[]}getRejects(){return this.rejects?this.rejects:[]}getExtraErrors(){return this.extraErrors?this.extraErrors:[]}addResolve(r){return this.resolves||(this.resolves=[]),this.resolves.push(r),this}addReject(r){return this.rejects||(this.rejects=[]),this.rejects.push(r),this}addExtraError(r){return this.extraErrors||(this.extraErrors=[]),this.extraErrors.push(r),this}};