w3c / tpac2023-breakouts

Repository setup to collect and organize breakout session proposals for TPAC 2023
4 stars 2 forks source link

`AsyncContext` integration with web APIs #39

Open andreubotella opened 1 year ago

andreubotella commented 1 year ago

Session description

AsyncContext is a stage 2 TC39 proposal that allows propagating values across an async execution flow, much like Node.js's AsyncLocalStorage. However, when building this capability into the web platform we must consider the integration with web APIs – should setTimeout propagate the async context from the point it is called into the callback? What about event registration?

Furthermore, Chrome has been working on associating script-initiated actions from their causes further up the async call stack (tracking a task's attribution), which is useful browser-internally to enable metrics and web API improvements that would not be possible otherwise. Task attribution is the same as propagating browser-internal values across an async execution flow, so if we can ensure all of the task attribution use cases are covered by AsyncContext, the former could be built on top of the latter, in the specs and in browser engines.

Post-TPAC note: The W3C staff is not aware of any minutes being taken at this session.

Session goal

Get feedback from browser vendors and other interested parties as to which web APIs should propagate the async context.

Additional session chairs (Optional)

@littledan

IRC channel (Optional)

async-context

Who can attend

Anyone may attend (Default)

Session duration

60 minutes (Default)

Other sessions where we should avoid scheduling conflicts (Optional)

38

Estimated number of in-person attendees

Don't know (Default)

Instructions for meeting planners (Optional)

No response

Agenda, minutes, slides, etc. (Optional)

ianbjacobs commented 1 year ago

@andreubotella, do you have a link to minutes for this session? Thanks!