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

Update docs/api.md to use async/await instead of Promise.prototype.then #5082

Closed
mathiasbynens opened this issue Oct 24, 2019 · 1 comment · Fixed by #5089
Closed

Update docs/api.md to use async/await instead of Promise.prototype.then #5082

mathiasbynens opened this issue Oct 24, 2019 · 1 comment · Fixed by #5089

Comments

@mathiasbynens
Copy link
Member

Now that we've dropped support for Node.js v6, let's update the remaining code examples on https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md to use async/await. It makes them simpler and easier to follow.

Help welcome!

@mathiasbynens
Copy link
Member Author

Thanks to @randombenj for contributing this change!

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

Successfully merging a pull request may close this issue.

1 participant