async function loadAllAsync(objs, loadSpec) {
    const promises = objs.map(it => it.loadAsync(loadSpec)),
        ret = await Promise.allSettled(promises);

    ret.filter(it => it.status === 'rejected')
        .forEach(err => console.error('Failed to Load Object', err.reason));

    return ret;
}
/**
 * Load a collection of objects concurrently.
 *
 * Note that this method uses 'allSettled' in its implementation, meaning a failure of any one call
 * will not cause the entire batch to throw.
 *
 * @param {Object[]} objs - list of objects to be loaded
 * @param {LoadSpec} [loadSpec] - metadata related to this request.
*/
Load a collection of objects concurrently.
Note that this method uses 'allSettled' in its implementation, meaning a failure of any one call
will not cause the entire batch to throw.

@param {Object[]} objs - list of objects to be loaded
@param {LoadSpec} [loadSpec] - metadata related to this request.
Load a collection of objects concurrently . Note that this method uses ' allSettled ' in its implementation meaning a failure of any one call will not cause the entire batch to throw . @param { Object [] } objs - list of objects to be loaded @param { LoadSpec } [ loadSpec ] - metadata related to this request .
async function loadAllAsync(objs, loadSpec) {
    const promises = objs.map(it => it.loadAsync(loadSpec)),
        ret = await Promise.allSettled(promises);
    ret.filter(it => it.status === 'rejected')
        .forEach(err => console.error('Failed to Load Object', err.reason));
    return ret;
}
async function loadAllAsync ( objs , loadSpec ) { const promises = objs . map ( it => it . loadAsync ( loadSpec ) ) , ret = await Promise . allSettled ( promises ) ; ret . filter ( it => it . status === 'rejected' ) . forEach ( err => console . error ( 'Failed to Load Object' , err . reason ) ) ; return ret ; }
Load a collection of objects concurrently.
Load a collection of objects concurrently .