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'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 https://github.com/astro/node-expat/issues/200 and am calling resume on the next tick, but it never gets as far as the resume call.
What am I missing here?