Study Notes
  • Introduction
  • Architecture & System Design
    • Messaging Systems
    • RPC Frameworks
    • Scalable Web Application Architecture
    • Parallel vs Concurrent
    • Concurrency
    • Load Balancing - Nginx
    • REST API
    • WebSockets
    • Streaming
    • Serialization
  • Programming Language
    • JavaScript & Node.js
      • Node.js Promises
      • Node.js Async Flow Control
      • Node.js Profiling
    • Java
    • Erlang
    • Python
    • Golang
      • Go Runtime Scheduler
  • Software Engineering
    • Design Patterns
    • Unit Testing
    • Legacy Code
    • Agile & Scrum
  • Database
    • NoSQL
    • SQL
  • DevOps & Tools
    • Version Control - Git
    • Shell - zsh, bash
    • Docker
    • Linux Package Management - YUM
    • Linux Command Line Tools
  • Security
    • OWASP Security
  • AI, ML, DL, CV, NLP
    • Deep Learning
Powered by GitBook
On this page
  • General
  • Promises
  • Bluebird (Promise/A+ library)
  • Generators
  • Async/Await

Was this helpful?

  1. Programming Language
  2. JavaScript & Node.js

Node.js Async Flow Control

JavaScript asynchronous control flow is a very interesting topic, and several approaches has been developed such as callback, promise, generator, async/await.

General

  • StuQ分享专题《深入浅出js(Node.js)异步流程控制》

Promises

  • Coroutine Event Loops in Javascript

  • Promise-Based Coroutines in Node.js

  • Best Practices for Using Promises in JS

  • Flow Control with Promises

  • Promise Anti-Patterns

Bluebird (Promise/A+ library)

  • *Bluebird Collection Methods, mapSeries, each, map, all

Generators

  • yield 和 yield*

Async/Await

  • Async Functions

  • Async/Await: The Hero JavaScript Deserved

  • Slides: ES7 Async/Await

  • Understanding Javascript Async Await

  • Understand promises before you start using async/await

  • Async javascript is much more fun when you memoize.

  • Async and Await

PreviousNode.js PromisesNextNode.js Profiling

Last updated 5 years ago

Was this helpful?