Created
June 22, 2020 17:23
-
-
Save treyhuffine/932f47a5f64c424bbab994747f812f4a 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
const apiRequest = async () => { | |
// do some async things for an unknown amount of time... | |
return { answer: 42 } ; | |
} | |
const run = async () => { | |
const response = await apiRequest(); | |
console.log(response); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment