ya-csv
ya-csv copied to clipboard
reader.pause() doesn't seem to work
I'm trying to pause the readstream after 500 lines but it does not seem to work :/ this is my code (in coffeescript): reader.addListener 'data', (data) -> lines++ console.log "passed line #{lines}",data @pause() return I expect this code to read only 1 line and than pause and it doesn't stop, am I missing smthing?
I ran into this problem. The pause will pause the stream, but if the buffer already has data in it, it will continue to process until it reaches the end of the buffer.