Javascript 异步编程

本文梳理一下 JavaScript 异步编程的几种写法。

  1. setTimeout & setInterval

  2. process.nextTick & setImmediate

  3. Promise

  4. MutaionObserver

  5. Generator

  6. async


views