Skip to content

Instantly share code, notes, and snippets.

@Raynos Raynos/output Secret
Created Jan 13, 2013

Embed
What would you like to do?
_read
_read
_read
test('low watermark _read', function (t) {
var r = new Readable({
isObjectStream: true,
lowWaterMark: 2,
highWaterMark: 4
});
var calls = 0;
r._read = function (n, cb) {
console.log("_read")
calls++;
cb(null, "foo");
};
// touch to cause it
r.read()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.