Results 11 comments of zhanba

@lastIndexOf 楼主在上面的回复里贴了process.nextTick()的源码了,nextTick不是event loop的一部分,更不是microtask,它有自己的队列,在当前循环中立即执行,执行到最后再_runMicrotasks()。

写的很好啊,除了process.nextTick不是microtask。

@jin5354 @Stone-Wang 可以看https://www.zhihu.com/question/55557148, https://github.com/creeperyang/blog/issues/21,https://github.com/creeperyang/blog/issues/26,根据node源码解读process.nextTick。 只能说网上的很多文章可能都有相互参考吧。个人觉得介绍microtask最好还是别加上process.nextTick。毕竟楼主的文章是介绍的web,没必要扯上node啊,node可以单独讲嘛

简单封装一下就行,对于很多npm包来说,tsc其实就行了,不需要整复杂的打包工具链。而且tsc有自己的独特优势。关键是提供这个选择。

I have some VSCode extension development experience, if you need help, you can contact me.

好文!想问一下浏览器为何要区分task和microtask呢?

有进展吗?

https://github.com/dotansimha/graphql-code-generator,请问下楼主类似这种codegen能解决前后端代码重复问题吗?

楼主的深复制方法只支持json对象,并不完美啊。可以参考http://jerryzou.com/posts/dive-into-deep-clone-in-javascript/

have the same errer and fixed by execute `rustup "target" "add" "--toolchain" "stable" "x86_64-linux-android"`