因为整个方法是包在async 的main里面的
试了几个回调类的接口都直接结束或者失败了
例子:
readerStream.on('data', chunk=> {
......
console.log('------------------')
console.log(chunk.replace('\r\n',''))
});
readerStream.on('end', function() {
console.log((new Date()).getTime() - start)
});
readerStream.on('error', function(err) {
console.log(err.stack);
});
···
吴克 (作者)
好的,我试试
2021-08-31 17:24