I\'m looking at this example from Angular\'s docs for $q but I think this probably applies to promises in general. The example below is copied verbatim from the
$q
There are some good answer above and here is the ES6 Arrow function version
var something = async() => { let result = await functionThatReturnsPromiseA(); return result + 1; }