Books & Videos

Table of Contents

  1. Chapter 1 Asynchrony: Now & Later

    1. A Program in Chunks

    2. Event Loop

    3. Parallel Threading

    4. Concurrency

    5. Jobs

    6. Statement Ordering

    7. Review

  2. Chapter 2 Callbacks

    1. Continuations

    2. Sequential Brain

    3. Trust Issues

    4. Trying to Save Callbacks

    5. Review

  3. Chapter 3 Promises

    1. What Is a Promise?

    2. Thenable Duck Typing

    3. Promise Trust

    4. Chain Flow

    5. Error Handling

    6. Promise Patterns

    7. Promise API Recap

    8. Promise Limitations

    9. Review

  4. Chapter 4 Generators

    1. Breaking Run-to-Completion

    2. Generator-ing Values

    3. Iterating Generators Asynchronously

    4. Generators + Promises

    5. Generator Delegation

    6. Generator Concurrency

    7. Thunks

    8. Pre-ES6 Generators

    9. Review

  5. Chapter 5 Program Performance

    1. Web Workers

    2. SIMD

    3. asm.js

    4. Review

  6. Chapter 6 Benchmarking & Tuning

    1. Benchmarking

    2. Context Is King

    3. jsPerf.com

    4. Writing Good Tests

    5. Microperformance

    6. Tail Call Optimization (TCO)

    7. Review

  7. Appendix asynquence Library

    1. Sequences and Abstraction Design

    2. asynquence API

    3. Value and Error Sequences

    4. Promises and Callbacks

    5. Iterable Sequences

    6. Running Generators

    7. Review

  8. Appendix Advanced Async Patterns

    1. Iterable Sequences

    2. Event Reactive

    3. Generator Coroutine

    4. Communicating Sequential Processes (CSP)

    5. Review

  9. Appendix Acknowledgments