You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: