Tag

await

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Oct 14, 2024 · Fundamentals

Understanding async and await in Python with Practical Examples

This article introduces Python's async and await keywords, explains how they enable coroutine programming, and provides multiple practical examples including simple coroutine definitions, awaiting tasks, concurrent execution with asyncio.gather, HTTP requests using aiohttp, and resource management with custom coroutine-based managers.

ConcurrencyCoroutineasync
0 likes · 6 min read
Understanding async and await in Python with Practical Examples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 28, 2024 · Frontend Development

Understanding React Router 6.4 Data APIs: Loader, Defer, and Await

This article explains how React Router 6.4’s new Data APIs—loader functions, defer, and the Await component—separate data fetching from rendering, improve client‑side and server‑side rendering performance, and provide a smoother user experience through progressive loading and streaming.

Data APIsReact RouterSSR
0 likes · 24 min read
Understanding React Router 6.4 Data APIs: Loader, Defer, and Await
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 9, 2023 · Frontend Development

Elegant Handling of async/await Exceptions in JavaScript

This article examines why try‑catch is often overused for async/await errors, outlines common scenarios that cause request failures, and presents two cleaner alternatives—using Promise .catch with conditional logic and the lightweight await‑to‑js utility—to simplify error handling and reduce code redundancy.

JavaScriptasyncawait
0 likes · 7 min read
Elegant Handling of async/await Exceptions in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 30, 2022 · Fundamentals

Understanding Dart Future: Asynchronous Tasks, Error Handling, and async/await

This article explains the Dart Future object, its role in representing asynchronous task results, how to listen to success and error callbacks with then, catchError, and whenComplete, the special FutureOr type, chaining with then, and simplifying code using async/await, illustrated with Flutter examples.

Asynchronous ProgrammingDartFlutter
0 likes · 19 min read
Understanding Dart Future: Asynchronous Tasks, Error Handling, and async/await
Python Programming Learning Circle
Python Programming Learning Circle
Sep 11, 2021 · Fundamentals

A Comparative Overview of Python and JavaScript Coroutines

This article compares the evolution, concepts, and practical implementations of coroutines in Python and JavaScript, explaining their histories, core mechanisms such as async/await, event loops, and providing side‑by‑side code examples to help newcomers understand asynchronous programming in both languages.

CoroutineEvent LoopJavaScript
0 likes · 15 min read
A Comparative Overview of Python and JavaScript Coroutines
ByteFE
ByteFE
Apr 25, 2021 · Fundamentals

Understanding ECMAScript Grammar: Lexical, Syntactic, and Identifier Rules

This article examines the four ECMAScript grammars—lexical, syntactic, regular‑expression, and numeric‑string—explains how context‑free productions define tokens, shows ambiguous cases such as the '/' and '`' characters, and details why the identifier await is prohibited in async functions through static‑semantic rules.

ECMAScriptGrammarLexical
0 likes · 13 min read
Understanding ECMAScript Grammar: Lexical, Syntactic, and Identifier Rules
ByteFE
ByteFE
Apr 22, 2021 · Frontend Development

Understanding ECMAScript Grammars: Lexical and Syntactic Rules and the Disallowance of await as an Identifier

This article explains how the ECMAScript specification defines four context‑free grammars—lexical, syntactic, RegExp, and numeric string—illustrates ambiguities such as the '/' token and template literals, and shows how static semantics forbid using the await keyword as an identifier inside async functions while allowing it elsewhere.

ECMAScriptGrammarLexical
0 likes · 15 min read
Understanding ECMAScript Grammars: Lexical and Syntactic Rules and the Disallowance of await as an Identifier