Created
April 5, 2017 13:28
-
-
Save runeh/7adf1873b45ffa9d0b6723da4e410f4c to your computer and use it in GitHub Desktop.
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
$ var personPromise = new Promise((resolve, reject) => { | |
setTimeout(function() { | |
reject('oh no'); | |
}, 1000); | |
}); | |
<await(person from personPromise)> | |
<div>Works</div> | |
<await-error>something went wrong</await-error> | |
</await> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment