Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watson/a598efcc967d6440c6b7 to your computer and use it in GitHub Desktop.
Save watson/a598efcc967d6440c6b7 to your computer and use it in GitHub Desktop.
var stream = require('stream')
var rs = new stream.Readable()
rs.push('hello')
rs.push('world')
rs._read = function() {}
var sameTick = true
rs.on('data', function() {
console.log('sameTick?', sameTick)
})
sameTick = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment