Skip to content

Instantly share code, notes, and snippets.

@aaronpowell aaronpowell/async.js
Created Apr 19, 2017

Embed
What would you like to do?
Abusing JavaScript async
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
You can’t perform that action at this time.