/**
 * 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