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

Add async version of parsing #38

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

abelptvts
Copy link

This PR adds an additional export to the library called parseAsync(). This function behaves exactly like parse(), the only difference is that it contains interrupts so that it does not block the event loop for the whole operation.

@elgs
Copy link
Owner

elgs commented Jan 4, 2022

Thanks for the PR. I understand your point, but I think you can wrap the functions in a promise or setTimeout to solve this problem. The changes in this PR are too complicated for me to understand. If you can eliminate any unnecessary changes of lines, I will merge it. Thanks.

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