Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to become a ES7 async/await-style generator function wrapper #154

Merged
merged 1 commit into from
Nov 16, 2014

Conversation

jonathanong
Copy link
Contributor

better version of #134. now it's future-proof with async/await, and i also got 100% coverage!

only issue is that the browser is now required to have a Promise implementation, so we run into the same #149 problem, but i don't think we should bother solving that because if a platform supports generators, it'll support promises as well.

i'll update the examples, readme, and wiki if we decide to merge this. this would be v4

issue bookkeeping: closes #149 closes #143 closes #133 closes #136 closes #131 closes #81

@coveralls
Copy link

Coverage Status

Coverage increased (+3.85%) when pulling 6621a82 on promise into f20460f on master.

@jonathanong jonathanong changed the title Switch to ES7 async/await-style Switch to become a ES7 async/await-style generator function wrapper Oct 28, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+3.85%) when pulling 4d2a63c on promise into f20460f on master.

@tj
Copy link
Owner

tj commented Nov 16, 2014

LGTM!

@jonathanong
Copy link
Contributor Author

@tj can you add me on npm?

@tj
Copy link
Owner

tj commented Nov 16, 2014

@jonathanong added

@fengmk2
Copy link
Collaborator

fengmk2 commented Nov 16, 2014

Change a lot

@jonathanong jonathanong merged commit 4d2a63c into master Nov 16, 2014
@jonathanong jonathanong deleted the promise branch November 16, 2014 05:05
@dead-horse
Copy link
Contributor

Should this be released after node 0.12? How's the Promise in node core going on?

@jonathanong
Copy link
Contributor Author

what do you mean? v0.11 already has promises, though it might not be ideal. I think the latest version has an okay implementation. hopefully they'll include the version of node that has generators enabled in v0.12

@dead-horse
Copy link
Contributor

ignore me. nodejs/node-v0.x-archive#7714 already landed in 0.11.14.

@matthewmueller
Copy link
Contributor

does this maintain backwards compatibility or no?

@matthewmueller
Copy link
Contributor

nvm, looks like it doesnt. read some of the readme

@hit9
Copy link

hit9 commented Nov 17, 2014

@matthewmueller no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet