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 util.promisify to wrap callback-based funcs #32

Merged
merged 7 commits into from
Oct 21, 2018
Merged

Conversation

yhatt
Copy link
Member

@yhatt yhatt commented Oct 20, 2018

This PR will use util.promisify to wrap callback-based funcs for converting to async functions

We had wrapped some functions manually. And now, we can recieve same results by simple definition provided from util.promisify(). We're using polyfill to support Node 6 environment.

@yhatt yhatt merged commit f822f9e into master Oct 21, 2018
@yhatt yhatt deleted the util-promisify branch October 21, 2018 17:55
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.

1 participant