lib/util.js
function evalPromise(promise) {
    // wrap in `countdown`
    exports.countdown(promise, timeout)
      .then(function(resolvedValue) {
        deferred.resolve(resolvedValue);
      }).fail(function(err) {
        deferred.reject(err);
      });
  }
function evalPromise(promise) {
    // wrap in `countdown`
    exports.countdown(promise, timeout)
      .then(function(resolvedValue) {
        deferred.resolve(resolvedValue);
      }).fail(function(err) {
        deferred.reject(err);
      });
  }
function evalPromise ( promise ) { // wrap in `countdown` exports . countdown ( promise , timeout ) . then ( function ( resolvedValue ) { deferred . resolve ( resolvedValue ) ; } ) . fail ( function ( err ) { deferred . reject ( err ) ; } ) ; }
waits for a promise, resolves deferred when resolved
@param promise
waits for a promise resolves deferred when resolved