B2G/gecko/toolkit/addon-sdk/promise/core.js
/**
 * Returns a promise resolved to a given `value`.
 */
Returns a promise resolved to a given `value`.
Returns a promise resolved to a given ` value ` .
function resolve(value) {
  var deferred = defer();
  deferred.resolve(value);
  return deferred.promise;
}
function resolve ( value ) { var deferred = defer ( ) ; deferred . resolve ( value ) ; return deferred . promise ; }
Returns a promise resolved to a given `value`.
Returns a promise resolved to a given ` value ` .