UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

14 lines 338 B
/** * Promise.all() but allows all functions to run even if one throws syncronously */ export function promiseAllMaybeAsync(fns) { return Promise.all(fns.map((fn) => { try { return fn(); } catch (e) { return Promise.reject(e); } })); } //# sourceMappingURL=promises.js.map