Skip to content

Comments

Add async version of parsing#38

Open
abelptvts wants to merge 3 commits intoelgs:masterfrom
abelptvts:add-async-version
Open

Add async version of parsing#38
abelptvts wants to merge 3 commits intoelgs:masterfrom
abelptvts:add-async-version

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