????
Current Path : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/typeorm/subscriber/ |
Current File : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/typeorm/subscriber/BroadcasterResult.js |
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BroadcasterResult = void 0; /** * Broadcaster execution result - promises executed by operations and number of executed listeners and subscribers. */ class BroadcasterResult { constructor() { /** * Number of executed listeners and subscribers. */ this.count = 0; /** * Promises returned by listeners and subscribers which needs to be awaited. */ this.promises = []; } /** * Wait for all promises to settle */ async wait() { if (this.promises.length > 0) { await Promise.all(this.promises); } return this; } } exports.BroadcasterResult = BroadcasterResult; //# sourceMappingURL=BroadcasterResult.js.map