src/util/promise-util.js
function Q_chainmap_graceful(args, func, failureCallback) {
    return Q.when().then(function(inValue) {
        return args.reduce(function(soFar, arg) {
            return soFar.then(function(val) {
                return func(arg, val);
            }).fail(function(err) {
                if (failureCallback) {
                    failureCallback(err);
                }
            });
        }, Q(inValue));
    });
}
function Q_chainmap_graceful(args, func, failureCallback) {
    return Q.when().then(function(inValue) {
        return args.reduce(function(soFar, arg) {
            return soFar.then(function(val) {
                return func(arg, val);
            }).fail(function(err) {
                if (failureCallback) {
                    failureCallback(err);
                }
            });
        }, Q(inValue));
    });
}
function Q_chainmap_graceful ( args , func , failureCallback ) { return Q . when ( ) . then ( function ( inValue ) { return args . reduce ( function ( soFar , arg ) { return soFar . then ( function ( val ) { return func ( arg , val ) ; } ) . fail ( function ( err ) { if ( failureCallback ) { failureCallback ( err ) ; } } ) ; } , Q ( inValue ) ) ; } ) ; }
Behaves similar to Q_chainmap but gracefully handles failures. When a promise in the chain is rejected, it will call the failureCallback and then continue the processing, instead of stopping
Behaves similar to Q_chainmap but gracefully handles failures . When a promise in the chain is rejected it will call the failureCallback and then continue the processing instead of stopping