Open glebec opened 8 years ago
+1 I was just trying to do the same thing
Same even if i try this._parser.close()
or this._parser.end()
+1 indeed a parser.abort() method would be useful to gracefully stop the parsing because some parse errors causing a stop and parser.resume() is not working (only parser.write())
I am trying to end a stream that is piped from a
sax
stream by callingmyStream.end()
, and to my surprise, this causessax
to throw an error. Specifically, I have something like the following:Why not allow stream users to signal when it is no longer necessary for sax to continue emitting data?
Stack trace for convenience: