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

Convert the PDFDocumentProperties.open method to be async #12645

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Nov 21, 2020

By using await, rather than chaining promises, this method becomes more compact and slightly easier to reason about (at least in my opinion).

Smaller/simpler diff with https://github.com/mozilla/pdf.js/pull/12645/files?w=1

By using `await`, rather than chaining promises, this method becomes more compact and slightly easier to reason about (at least in my opinion).
@Snuffleupagus Snuffleupagus force-pushed the async-PDFDocumentProperties-open branch from 2b1040b to 4615815 Compare November 21, 2020 12:55
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/ce040c64efa5f36/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/ce040c64efa5f36/output.txt

Total script time: 4.19 mins

Published

@timvandermeij timvandermeij merged commit d88d47d into mozilla:master Nov 21, 2020
@timvandermeij
Copy link
Contributor

Thank you!

@Snuffleupagus Snuffleupagus deleted the async-PDFDocumentProperties-open branch November 21, 2020 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants