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
parser.pause() #65
parser.pause() #65
Conversation
Found this problem when .end() occurs while it's paused, will have to come back, sorry. |
I'd like to pull this in, but it doesn't apply cleanly. would you mind rebasing onto the current master, and squash down to one or two commits? |
Can we get this pull request accepted? I could really use parser.pause() |
Anything happening with this? It would make my life complete. |
That's a bit humorous. parser.pause() = life complete. Sorry. Had to state the obviously cheesy. |
+1 for this feature ! |
Superseded by #107 |
Added support for parser.pause() with the following semantics:
After a parser.pause(), no events should be emitted before the next parser.resume(), even if parser.write() is invoked.
Needed to slightly modify:
Added test test/pause.js that takes a large xml chunk, breaks it in pieces and:
Documented parser.pause in README.