Created
April 19, 2017 03:58
-
-
Save aaronpowell/196842fb0d09cbbfe000317ebcb99e07 to your computer and use it in GitHub Desktop.
Abusing JavaScript async
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 async(async) { | |
return new Promise(res => | |
setTimeout(() => (console.log(async), res()), 1000) | |
); | |
} | |
async function await() { await async('hello'); } | |
await(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment