proposal-async-context icon indicating copy to clipboard operation
proposal-async-context copied to clipboard

Async Context for JavaScript

Results 36 proposal-async-context issues
Sort by recently updated
recently updated
newest added

This is a small helper function that allows you to temporarily restore the previous ambient context state (like a `snapshot.run(fn)` call). This allows us continue with registration-time being the recommended...

One of the challenges Node.js has faced with `AsyncLocalStorage` and the underlying `async_hooks` is that consumers of those APIs don't always agree on which path a given propagation should follow....

Related: https://github.com/nodejs/node/issues/42237, https://github.com/open-telemetry/opentelemetry-js/issues/2951 Should a generator or an async generator capture the async context when being created? Given: ```js const context = new AsyncContext(); async function* gen(context) { await Promise.resolve();...

In a previous meeting we agreed that, although built-in iterators should not propagate the creation context by default, iterator helpers should probably propagate it: ```js const var1 = new AsyncContext.Variable();...

In Dart, you can use [zones](https://api.dart.dev/stable/3.3.3/dart-async/Zone-class.html) to achieve the same goal as you're going for with this proposal. Dart zones are not a 3rd party library, but are provided by...

@syg expressed the concern at TC39 that JS developers may allocate too many AsyncContext variables, slowing down their programs and creating unmanageable expectations on JS engines to make it fast...

This is IMO a much needed addition to the language, I love this proposal. I wonder however if calling it `AsyncContext` is the best way to go about it, given...

Events are widely used in async operations, e.g. Host APIs like Node.js EventEmitters `Server`, `Stream`, and web browser EventTargets `XMLHttpRequest`. Expectations can be that the invocation of `addEventListener` acts as...

host integration

Have a look at continuation marks in Racket (previously MzScheme), which are used in practice for many kinds of things including dynamic thread-local binding (we call them "parameters", a bit...

This was discussed at some length on Matrix starting around [here](https://matrixlogs.bakkot.com/TC39_Delegates/2023-02-01#L95), but I want to capture it on this tracker so it doesn't get lost. I think that it is...