Say I have a readable stream, like so:
const strm = fs.createReadStream(file);
strm.on('data', function onData(d){});
my question is, does the onData
callback fire in the next tick of the event loop? Or is it possible for the onData
handler to be called twice in the same tick of the event loop?