Created
May 22, 2016 04:09
-
-
Save lfreeland/e6e92ef93926b962d9b16dc3304e5aee to your computer and use it in GitHub Desktop.
TypeScript2 Async Await Example
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
| async function main() { | |
| await ping(); | |
| // Other code here is executed without a callback function. | |
| } | |
| main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment