nodeJs 学习打卡

74 阅读1分钟

2021/2/1

1. nodeJs eventLoop  node层拿到计算信息,压入到eventLoop队列里,给到c++  c++开启线程 开始计算,完成了,退出eventLoop队列,返回到node完成一次事件循环。

2. async 在await之前代码都是同步的