Created
June 3, 2014 13:42
-
-
Save mafintosh/5ed4eb4327db910581ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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