function genSettler (self, state) {
        return function (value) {
            if (isLongStackTrace)
                { self[$settlerTrace] = genTraceInfo(true); }

            if (state === $resolved)
                { settleWithX(self, value); }
            else
                { settlePromise(self, state, value); }
        };
    }
/**
     * It will produce a settlePromise function to user.
     * Such as the resolve and reject in this `new Yaku (resolve, reject) ->`.
     * @private
     * @param  {Yaku} self
     * @param  {Integer} state The value is one of `$pending`, `$resolved` or `$rejected`.
     * @return {Function} `(value) -> undefined` A resolve or reject function.
     */
It will produce a settlePromise function to user.
Such as the resolve and reject in this `new Yaku (resolve, reject) ->`.
It will produce a settlePromise function to user . Such as the resolve and reject in this ` new Yaku ( resolve reject ) - > ` .
function genSettler (self, state) {
        return function (value) {
            if (isLongStackTrace)
                { self[$settlerTrace] = genTraceInfo(true); }
            if (state === $resolved)
                { settleWithX(self, value); }
            else
                { settlePromise(self, state, value); }
        };
    }
function genSettler ( self , state ) { return function ( value ) { if ( isLongStackTrace ) { self [ $settlerTrace ] = genTraceInfo ( true ) ; } if ( state === $resolved ) { settleWithX ( self , value ) ; } else { settlePromise ( self , state , value ) ; } } ; }
It will produce a settlePromise function to user.
It will produce a settlePromise function to user .