Tag

Async/Await

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 6, 2025 · Frontend Development

Error Handling Strategies for async/await in JavaScript

This article explains the fundamentals of async/await in JavaScript, compares it with callbacks and promises, and presents various error‑handling approaches such as try/catch, Promise.catch, combined await‑catch, and global rejection listeners, helping developers choose the most suitable strategy for their projects.

Async/AwaitJavaScriptPromise
0 likes · 9 min read
Error Handling Strategies for async/await in JavaScript
Code Mala Tang
Code Mala Tang
Jan 26, 2025 · Fundamentals

Master Python Async: Boost Performance with asyncio, async/await, and Tasks

This guide explains Python asynchronous programming using the asyncio library, covering async functions, coroutine objects, the event loop, await syntax, task creation, and concurrent execution with asyncio.run, create_task, and gather to improve I/O‑bound performance.

Async/AwaitAsynchronous ProgrammingCoroutine
0 likes · 7 min read
Master Python Async: Boost Performance with asyncio, async/await, and Tasks
Test Development Learning Exchange
Test Development Learning Exchange
Sep 21, 2024 · Fundamentals

Understanding Python Coroutines: Concepts, Implementation, and Practical Examples

This article introduces Python coroutines, explains their basic concepts and advantages, demonstrates how to implement them using async and await, and provides practical examples for concurrent HTTP requests and resource management, illustrating the underlying mechanics of async def, await, and the asyncio library.

Async/AwaitConcurrencyasyncio
0 likes · 6 min read
Understanding Python Coroutines: Concepts, Implementation, and Practical Examples
Code Mala Tang
Code Mala Tang
Sep 3, 2024 · Backend Development

Mastering async/await in Node.js: Clean Code, Error Handling, and Patterns

This article explains how async/await simplifies callback and Promise code in Node.js, covering async function basics, error handling, retry strategies, parallel execution, array iteration pitfalls, and step‑by‑step refactoring of callback‑ and Promise‑based applications into clear, maintainable async/await code.

Async/AwaitJavaScriptNode.js
0 likes · 17 min read
Mastering async/await in Node.js: Clean Code, Error Handling, and Patterns
Code Mala Tang
Code Mala Tang
Aug 22, 2024 · Frontend Development

Can the New ?= Operator Eliminate Try‑Catch in JavaScript?

An upcoming ECMAScript proposal introduces the safe assignment operator ?=, which returns a [error, result] tuple to streamline error handling, reduce try‑catch nesting, support custom Symbol.result, work with async/await, and can be polyfilled for older browsers.

Async/AwaitECMAScript ProposalJavaScript
0 likes · 6 min read
Can the New ?= Operator Eliminate Try‑Catch in JavaScript?
Sohu Tech Products
Sohu Tech Products
Jul 31, 2024 · Fundamentals

Key ES8 (ECMAScript 2017) Features for Modern JavaScript Development

ES8 (ECMAScript 2017) adds trailing commas, async/await syntax, native Object.values/entries methods, padStart/padEnd string padding, and Object.getOwnPropertyDescriptors, enabling cleaner, more concise, and maintainable JavaScript code while simplifying asynchronous handling and object manipulation for developers.

Async/AwaitES8JavaScript
0 likes · 7 min read
Key ES8 (ECMAScript 2017) Features for Modern JavaScript Development
37 Interactive Technology Team
37 Interactive Technology Team
Feb 21, 2024 · Fundamentals

Deconstructing Asynchronous Programming

The article breaks down modern asynchronous programming by examining four core models—callbacks, Promises, reactive observer patterns, and message‑driven architectures—explaining their mechanics, pros and cons, and providing JavaScript/Dart examples and system diagrams to help developers master non‑blocking concurrency.

Async/AwaitAsynchronous ProgrammingCallbacks
0 likes · 26 min read
Deconstructing Asynchronous Programming
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 19, 2023 · Frontend Development

7 Advanced JavaScript async/await Techniques

This article explains seven advanced JavaScript async/await patterns—including higher‑order functions, concurrency control, recursive processing, asynchronous class initialization, method chaining, event‑loop integration, and streamlined error handling—to help developers write clearer, more maintainable asynchronous code.

Advanced TechniquesAsync/AwaitAsynchronous Programming
0 likes · 15 min read
7 Advanced JavaScript async/await Techniques
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 4, 2023 · Frontend Development

Controlling Concurrent Requests in JavaScript with Promise.all, Promise.race, and async/await

This article explains how to manage multiple asynchronous HTTP requests in modern web development by using Promise.all, Promise.race, async/await, manual counters, and third‑party libraries, providing complete code examples and best‑practice recommendations for limiting concurrency and improving application performance.

Async/AwaitConcurrencyJavaScript
0 likes · 8 min read
Controlling Concurrent Requests in JavaScript with Promise.all, Promise.race, and async/await
php中文网 Courses
php中文网 Courses
May 8, 2023 · Backend Development

Concurrent Requests to Third-Party APIs in Node.js

This article explains how to use Node.js's built‑in http/https modules to call third‑party APIs and demonstrates three concurrency techniques—Promise.all, async/await with Promise.race, and EventEmitter—to perform parallel requests efficiently, including code examples for constructing requests, handling responses, and error management.

Async/AwaitConcurrencyEventEmitter
0 likes · 8 min read
Concurrent Requests to Third-Party APIs in Node.js
Sohu Tech Products
Sohu Tech Products
Mar 22, 2023 · Frontend Development

Deep Dive into async/await, Promise, and Event Loop Mechanics in JavaScript

This article explains how async functions, await expressions, and Promise objects interact with JavaScript's event loop, illustrating the differences in micro‑task scheduling through numerous code examples and detailing how return values affect the number of queued tasks.

Async/AwaitEvent LoopJavaScript
0 likes · 13 min read
Deep Dive into async/await, Promise, and Event Loop Mechanics in JavaScript
Bilibili Tech
Bilibili Tech
Jan 3, 2023 · Frontend Development

Understanding JavaScript Promises: Concepts, Implementation, and Practical Use Cases

The article traces JavaScript promises from their 1988 origins and early libraries through the Promise/A+ spec and ES6 implementation, explains core rules, demonstrates practical rewrites using chaining, async/await, error handling, cancellation patterns, and parallel execution with Promise.all, offering guidance for robust asynchronous code.

Async/AwaitFront-endJavaScript
0 likes · 17 min read
Understanding JavaScript Promises: Concepts, Implementation, and Practical Use Cases
php中文网 Courses
php中文网 Courses
Apr 14, 2022 · Frontend Development

Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants

The article presents a series of JavaScript ES6 code‑review critiques, explaining why older ES5 patterns are problematic and demonstrating modern ES6 alternatives such as destructuring, spread operators, template literals, optional chaining, async/await, and array methods with clear code examples.

Array MethodsAsync/AwaitCode Review
0 likes · 8 min read
Common ES6 Pitfalls and Improvements: A Leader’s Code Review Rants
Selected Java Interview Questions
Selected Java Interview Questions
Nov 25, 2021 · Frontend Development

Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions

This article demonstrates how to refactor tangled asynchronous request chains and complex if‑else logic in JavaScript by replacing callback hell with Promise.all and async/await, extracting pure helper functions, and applying best‑practice principles to improve readability, testability, and maintainability.

Async/AwaitJavaScriptPromise
0 likes · 11 min read
Refactoring Examples for Common Business Scenarios: From Callback Hell to Promise.all and Pure Functions
Fulu Network R&D Team
Fulu Network R&D Team
Oct 18, 2021 · Frontend Development

Implementing mini-async-dva: Adding async/await Support to DVA

This article examines the limitations of the original DVA framework, proposes a mini‑async‑dva fork that adds async/await support to model effects, and details its implementation—including store management, dynamic model registration, and asynchronous component loading—while providing full code comparisons.

Async/AwaitDVAJavaScript
0 likes · 8 min read
Implementing mini-async-dva: Adding async/await Support to DVA
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 28, 2021 · Fundamentals

Understanding JavaScript Generators: Beyond Async/Await and Infinite Sequences

This article clarifies the misconception that JavaScript generators are only for async, explains their underlying pause‑and‑resume mechanism, demonstrates how they can model infinite sequences such as prime numbers by translating Haskell concepts, and shows practical API designs using generators.

Async/AwaitFunctional ProgrammingGenerators
0 likes · 7 min read
Understanding JavaScript Generators: Beyond Async/Await and Infinite Sequences
Tencent Cloud Developer
Tencent Cloud Developer
Aug 18, 2021 · Backend Development

Functional Programming Patterns for Business Logic Optimization

By introducing function composition, async/await support, and the koa‑compose middleware pattern, this article shows how functional programming techniques can replace tangled nested conditionals with reusable, readable pipelines that track execution status, improving business logic readability, maintainability, and extensibility.

Async/AwaitComposeFunctional Programming
0 likes · 9 min read
Functional Programming Patterns for Business Logic Optimization
Python Programming Learning Circle
Python Programming Learning Circle
Jun 5, 2021 · Backend Development

Understanding Python Coroutines: From IO Multiplexing to Generators and Async/Await

This article explains how Python implements coroutines for high‑performance network and web programming by combining OS‑level IO multiplexing, generator‑based control flow, callback elimination, stack‑driven call‑chain traversal, Future objects, and the evolution toward async/await syntax.

Async/AwaitCoroutineGenerators
0 likes · 18 min read
Understanding Python Coroutines: From IO Multiplexing to Generators and Async/Await
ByteFE
ByteFE
Apr 7, 2021 · Frontend Development

Promise‑Based JavaScript Animation Library: Design and Implementation

This article introduces a Promise‑based JavaScript animation library, explains how to create sequential animations using async/await, provides polyfills for requestAnimationFrame and es6‑promise, details the Animator class implementation, and demonstrates usage with code examples and easing extensions.

AnimatorAsync/AwaitJavaScript
0 likes · 11 min read
Promise‑Based JavaScript Animation Library: Design and Implementation