Created
June 16, 2015 15:12
-
-
Save ajcrites/2e2ac2b3c6be5e8fdd4c 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
require("babel/polyfill"); | |
async () => { | |
let value = await ( | |
() => new Promise(resolve => setTimeout( | |
() => resolve("value"), 2000 | |
)) | |
)(); | |
console.log(value); | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment