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

Just adding a polyfill section similar to what can be seen on [temporal proposal](https://github.com/tc39/proposal-temporal#polyfills)

_Extracted from [AsyncContext & events: alternative proposal](https://hackmd.io/v_bJJ6uTT8qyz71UhnJYBw?view)_ Ref https://github.com/tc39/proposal-async-context/pull/100 --- The proposed web integration runs event listener in the "dispatch context", and use the "empty context" as a fallback when...

I found a way to make everything but the variable get fast in [this comment](https://github.com/tc39/proposal-async-context/issues/107#issuecomment-2622966231), and that one remaining optimization looks an awful lot like the inline caches used for...

With two variables to set at the same time the code seems to easily become very unwieldy. ```js const a = AsyncContext.Variable() const b = AsyncContext.Variable() a.run('x', async () =>...

Having complex systems with various variables could result in leaking unintended values to subsystems. It might be reasonable to have something like `AsyncContext.sandbox(() => {... })` which reset's all the...

Adjusting the proposal to use the alternative API proposed in: https://github.com/tc39/proposal-async-context/issues/105 _Note: This PR is currently only to show how the API would change to give a sense how it...