Skip to content

Instantly share code, notes, and snippets.

@runeh
Created April 5, 2017 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runeh/7adf1873b45ffa9d0b6723da4e410f4c to your computer and use it in GitHub Desktop.
Save runeh/7adf1873b45ffa9d0b6723da4e410f4c to your computer and use it in GitHub Desktop.
$ 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