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

Use async/await for pokemon-client #1

Merged
merged 1 commit into from
Jul 13, 2015

Conversation

mathbruyen
Copy link
Contributor

(to continue discussion from essential-react at the proper place)

The pokemon function could process with async/await and manipulate variables instead of subscribing to promises since it does return a promise.

Another thing in the same file could be to remove async from descriptions method since it could synchronously return an array of promises instead of a promise which immediately resolves to an array of promises. Did not perform the change because it would change the return type and has effects on other parts of the code.

@carlosvillu
Copy link
Contributor

Thx for the PR. And you are right I could change the "description" function in a similar way.

👍

carlosvillu added a commit that referenced this pull request Jul 13, 2015
Use async/await for pokemon-client
@carlosvillu carlosvillu merged commit 24e45a6 into carlosvillu-com:master Jul 13, 2015
@mathbruyen mathbruyen deleted the patch-1 branch July 13, 2015 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants