Skip to content

Instantly share code, notes, and snippets.

@brunops
Last active December 29, 2015 07:39
Show Gist options
  • Save brunops/7638156 to your computer and use it in GitHub Desktop.
Save brunops/7638156 to your computer and use it in GitHub Desktop.
why does it hang for a while before terminating?
var Readable = require('stream').Readable;
var rs = new Readable;
rs.push('bro ');
rs.push(null);
for (var i = 0; i < 10000; i++)
rs.pipe(process.stdout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment