标签:NPU cti log test bsp 问题 syn sync nod
promisify问题
promisify = require(‘util).promisify
const read = promisify( fs.readFile);
read(‘input.txt‘).then(data=>{
}).catch(err=>{
})
async function test(){
try{
const res = await read(‘input.txt‘)
}catch(ex){
console.log(ex)
}
}
标签:NPU cti log test bsp 问题 syn sync nod
原文地址:https://www.cnblogs.com/joer717/p/10541650.html