JavaScript-Async-List
JavaScript Async List | JavaScript 异步编程资料索引
Event Loop
-
2017-Vue 源码详解之 nextTick:MutationObserver 只是浮云,microtask 才是核心!:
-
2016-setImmediate.js : setImmediate.js is a highly cross-browser implementation of the setImmediate and clearImmediate APIs, proposed by Microsoft to the Web Performance Working Group.
-
Asynchronous Adventures in JavaScript: Understanding the Event Loop
-
2017-Understanding Javascript Function Executions — Call Stack, Event Loop, Tasks & more
-
浏览器和 Node 中 Event Loop 其实是不相同的。: 本文我们将会介绍 JS 实现异步的原理,并且了解了在浏览器和 Node 中 Event Loop 其实是不相同的。
Node.js EventLoop
-
2016-Understanding the Node.js Event Loop: This article helps you to understand how the Node.js event loop works, and how you can leverage it to build fast applications. We’ll also discuss the most common problems you might encounter, and the solutions for them.
-
2016-The Node.js Event Loop, Timers, and process.nextTick(): The event loop is what allows Node.js to perform non-blocking IO operations — despite the fact that JavaScript is single-threaded — by offloading operations to the system kernel whenever possible.
-
2017-setImmediate() vs nextTick() vs setTimeout(fn,0) – in depth explanation: And going through official documents of Node may not really be feasible for non-advanced developers. Hence I decided to come up with this article.
Callback
Promise
-
2017-How to make the fastest Promise library: I have developed Aigle which is a fast Promise library. It is inspired byBluebird. The library is not only a benchmark exercise but a production-ready library that implements the Promise A+ standard, and does so faster than Bluebird.
-
2017-A quick guide to JavaScript Promises: When you are writing JavaScript, callbacks are one of the most confusing concepts. Promises are the new approach to improve working with async code.
-
2017-ES6 Promises: Patterns and Anti-Patterns: Here I’ll lay out a few basic patterns I’ve learned while working with Promises, as well as some gotchas.
-
剖析 Promise 内部结构: 一步一步实现一个完整的、能通过所有 Test case 的 Promise 类。
-
2018-Promises are not neutral enough: Promises in JavaScript create problems which affect the entire ecosystem. In this blog post I’ll explain some of those problems.
Generator
-
2017-The Hidden Power of ES6 Generators: Observable Async Flow Control: In that article, I intentionally sidestepped another major use-case for generators. Arguably, the primary use case: Asynchronous flow control.
async/await
-
2017-Even with async/await, raw promises are still key to writing optimal concurrent javascript
-
2017-Bounce : Selective error catching and rewrite rules. Learning to Throw Again, Catching without Awaiting.
-
2017-JavaScript ES 2017: Learn Async/Await by Example: Async/Await explained through a clear example.
-
Async Await BIBLE: Sequential, Parallel, Nest, Dynamic and Error Handling in Javascript
-
Mastering Async Await in Node.js: In this article, you will learn how you can simplify your callback or Promise based Node.js application with async functions (async/await).
-
2018-Faster async functions and promises: This article explores how we optimized async functions and promises in V8 (and to some extent in other JavaScript engines as well), and describes how we improved the debugging experience for async code.