74

浏览器说:虽然都叫event loop,但是我和node不一样

 5 years ago
source link: https://juejin.im/post/5b0ab722f265da0dbd7a646f
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
讨论event loop要做到以下两点 首先要确定好上下文,nodejs和浏览器的event loop是两个有明确区分的事物,不能混为一谈。 其次,讨论一些js异步代码的执行顺序时候,要基于node的源码而不是自己的臆想。 简单来讲: nodejs的ev

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK