unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
16 lines • 596 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.allSettledWithRejection = void 0;
const allSettledWithRejection = (promises) => new Promise((resolve, reject) => {
Promise.allSettled(promises).then((results) => {
for (const result of results) {
if (result.status === 'rejected') {
reject(result.reason);
return;
}
}
resolve(results.map((r) => r.value));
});
});
exports.allSettledWithRejection = allSettledWithRejection;
//# sourceMappingURL=allSettledWithRejection.js.map