Open
Description
Request for Node.js Position on an Emerging Specification
- Specification title: AsyncContext
- Specification or proposal URL (if available): https://github.com/tc39/proposal-async-context/
- Explainer URL (if available): (includes potential future extensions)
- Web integration: https://github.com/tc39/proposal-async-context/blob/master/WEB-INTEGRATION.md
- Mutation explainer: https://github.com/tc39/proposal-async-context/blob/master/MUTATION-SCOPE.md
- Continuation flow: https://github.com/tc39/proposal-async-context/blob/master/CONTINUATION.md
- Proposal author(s) (
@
-mention GitHub accounts): - Node.js collaborators or ecosystem members who can provide input (optional):
- @nodejs/diagnostics
Notes
The AsyncContext proposal adds an API that shares similar scopes with Node.js stable API AsyncLocalStorage into the ECMAScript. Moreover, AsyncContext adds generator/yield support and making the semantics of future using
declaration support more intuitive in generator function bodies.
The proposal will expand the usages of Node.js stable API AsyncLocalStorage to the Web and other JS runtimes.