Skip to content

Instantly share code, notes, and snippets.

@itaditya
Last active March 31, 2018 22:14
Show Gist options
  • Save itaditya/72664a955f01db5c0cdd102acbde6beb to your computer and use it in GitHub Desktop.
Save itaditya/72664a955f01db5c0cdd102acbde6beb to your computer and use it in GitHub Desktop.
async function without await
(async () => {
const value = doSomeAsyncTask()
console.log(value) // an unresolved promise
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment