
- English
- ePUB (mobile friendly)
- Available on iOS & Android
eBook - ePub
About this book
JavaScript promises async await event loop concurrency non-blocking code real-world examples
Master the hardest parts of JavaScript: promises, async/await, and the event loop. In Async JavaScript, Untangled, Victor Fontaine cuts through the confusion with worked examples that show exactly how to write non-blocking code that handles real concurrency cleanly. You'll start with the event loop's mechanics, then progress through promise chaining, error handling, and async/await patterns—each concept illustrated with practical, runnable code. By the end, you'll untangle race conditions, avoid callback hell, and build responsive web apps that scale. This is a hands-on, beginner-to-pro guide for every JavaScript developer who wants to write clean, concurrent code without the headaches. Compare with [placeholder] and [placeholder] for a deeper dive.
What You'll Learn
How the event loop processes microtasks and macrotasks
Building promises from scratch to understand their behavior
Async/await patterns for sequential and parallel execution
Handling real concurrency with race, all, and allSettled
Error propagation and try/catch in async flows
Non-blocking I/O and avoiding deadlocks
With clear explanations and dozens of worked examples, this book transforms confusion into confidence. Perfect for frontend, backend, and full-stack developers ready to tame asynchronous JavaScript.
Trusted by 375,005 students
Access to over 1.5 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Subtopic
Parallel ProgrammingIndex
Computer ScienceTable of contents
- Async JavaScript, Untangled
- Async JavaScript, Untangled
- Preface
- Chapter 1 — The Synchronous Trap
- Chapter 2 — The Event Loop Engine
- Chapter 3 — Callbacks: The Original Pattern
- Chapter 4 — Promises: A Better Contract
- Chapter 5 — Fetch API and Promise Composition
- Chapter 6 — Async/Await: Writing Async Code That Reads Like Sync
- Chapter 7 — Generators: Pause and Resume
- Chapter 8 — Async Generators: Streaming Data
- Chapter 9 — Error Handling Strategies
- Chapter 10 — Testing Async Code
- Chapter 11 — Concurrency and Race Conditions
- Chapter 12 — Performance Optimization
- Chapter 13 — Security and Memory
- Chapter 14 — Real-Time with WebSockets
- Chapter 15 — Workers and Parallelism
- Chapter 16 — Streams and Pipes
- Chapter 17 — Advanced Patterns
- Chapter 18 — Deployment and Monitoring
- About the Author
Frequently asked questions
Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Async JavaScript, Untangled by Victor Fontaine in PDF and/or ePUB format, as well as other popular books in Computer Science & Parallel Programming. We have over 1.5 million books available in our catalogue for you to explore.