async do expressions S1
- Stage: Stage 1
- Status: Active
- ECMAScript edition: —
- Synchronized: Aug 28, 2026
- 中文译文 · Source repository
The proposal introduces async do expressions to create an asynchronous context without requiring an immediately-invoked async function expression. It builds on the do expressions proposal and provides syntax that simplifies asynchronous operations inline. The proposal has preliminary spec text, indicating it is in an early stage of development.
The README below comes from the upstream repository and may contain outdated stage or status metadata. Use the proposal details above as the current source of truth.
ECMAScript proposal: async do expressions
async do expressions allow you to introduce an asynchronous context within synchronous code without needing an immediately-invoked async function expression.
This proposal builds off of the do expressions proposal.
This proposal has preliminary spec text.
Motivation
Currently the boundary between synchronous and asynchronous code requires defining and invoking an async function. In the case that you just want to perform a single operation, that's a lot of syntax for a relatively primitive operation: (async () => {...})(). This lets you write async do {...} instead.