index.js
function loadWithPromise (options) {
  return new Promise((resolve, reject) => {
    loadWithCallback(options, (error, config) => {
      if (error) {
        reject(error)
      } else {
        resolve(config)
      }
    })
  })
}
function loadWithPromise (options) {
  return new Promise((resolve, reject) => {
    loadWithCallback(options, (error, config) => {
      if (error) {
        reject(error)
      } else {
        resolve(config)
      }
    })
  })
}
function loadWithPromise ( options ) { return new Promise ( ( resolve , reject ) => { loadWithCallback ( options , ( error , config ) => { if ( error ) { reject ( error ) } else { resolve ( config ) } } ) } ) }
Wrap loadWithCallback with Promise

@param {module:CloudConfigClient~Options} options - spring client configuration options
@returns {Promise<module:Config~Config, Error>} promise handler
Wrap loadWithCallback with Promise