Last active
June 10, 2017 18:07
-
-
Save patarkf/27f9396262fd51120f8e8390aa4c601a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function myAsyncFunction() { | |
try { | |
const result = await somethingThatReturnsAPromise(); | |
console.log(result); | |
} catch (error) { | |
console.log(error); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment