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

Stop() or Pause() emit "parser suspended" error then close ? #212

Open
williamsdyyz opened this issue Oct 25, 2021 · 0 comments
Open

Stop() or Pause() emit "parser suspended" error then close ? #212

williamsdyyz opened this issue Oct 25, 2021 · 0 comments

Comments

@williamsdyyz
Copy link

I'm trying to understand how to control backpressure.

It looks like I should be able to pause the parser while I write data to a db and then resume after the operation is complete, but calling Stop or Pause (same thing?) immediately throws an error and closes the stream.

I've looked at issue #200 and am calling resume on the next tick, but it never gets as far as the resume call.

What am I missing here?

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

No branches or pull requests

1 participant