Last active
September 27, 2017 22:25
-
-
Save s-taylor/aa450a0a7792c5f37b83ed0e3fd69bd7 to your computer and use it in GitHub Desktop.
Understanding async await - part 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function () { | |
// someAsyncThing being a function that returns a promise | |
return someAsyncThing() | |
.then(result => result.value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment