Async Await inside event handler in Node.js

前端 未结 0 428
清酒与你
清酒与你 2021-01-01 05:21

I have the following code:

readInterface.on(\'line\', async (line) => {
    const splitLine = line.split(\',\')

    const domain = splitLine[0]
    splitL         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题