I'm creating a writestream:
var file = fs.createWriteStream('path', {flags: 'a+', encoding: 'utf16le'});
Using async.queue, I'm queuing this job:
file.write(data, 'utf8');
file.on('error', function(error) {
console.error('ERROR with file stream', error);
});
Getting this warning:
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Is there a good way to resolve this, without using setMaxListeners(0)
?
Node version: 0.10.29