function () {
  // someAsyncThing being a function that returns a promise
  return someAsyncThing()
  .then(result => result.value);
}