code: function() {
  		var that = this;
  		return new Promise(function(resolve, reject) {
  			that.resolve(function(err, val) {
  				if (err) {
  					reject(err);
  				} else {
  					resolve(val);
  				}
  			});
  		});
  	}
docs: Returns an ES6 Promise