19:49
<littledan>

We really need to execute on improving the motivation section of the async context readme, especially for the web use cases. Here's a summary of use cases I have in mind:

  • Prioritizing threads of control, along the lines of https://github.com/WICG/scheduling-apis , and inheriting these priorities across callbacks and async/await (both the built-in mechanism and JS-level mechanisms)
  • Collecting performance information across logical asynchronous threads of control, including both timings and with OpenTelemetry. See this project which can only work with async/await if you use a custom transpiler: https://open-telemetry.github.io/opentelemetry-js/classes/_opentelemetry_context_zone_peer_dep.ZoneContextManager.html
  • Yoav's various use cases [as a consistent mechanism which works within browsers and fundamentally needs the same mechanics]
  • There's some other use case with React Cache but I don't fully understand it.
  • We have other use cases within Bloomberg in the Terminal to track different logical "applications" which run in the same JS heap, but I'm not sure if anyone else runs into these issues. (We also want to make more use of OpenTelemetry)
19:49
<littledan>
Every time I talk with a web person about this proposal, they are confused for this exact reason
19:50
<littledan>
Can someone take the action to make a PR to the async context readme on this topic? If not, please let me know and I'll try to eventually do it (but might not have time before this meeting)
19:51
<littledan>
also: Are we putting AsyncContext on the agenda for this TC39 meeting? We need to decide by tomorrow and add it if so.
19:52
<Andreu Botella>
Chengzhong mentioned in the WinterCG meeting that the idea was to propose it for stage 2 for this TC39 plenary
19:53
<littledan>
Good, let's put it on the agenda then
19:54
<littledan>
it will need to have this web motivation better documented for this plenary
19:54
<littledan>
This will also be important to have written down significantly before the March 16th WebPerf WG call which will discuss AsyncContext
19:56
<Andreu Botella>
is there some link for the react use case?
19:57
<littledan>
(I only know of the description in Justin's slides... IMO the others are sufficient to start with)
19:57
<Andreu Botella>
ok, I'll make a PR for that
19:58
<littledan>
Thanks!
21:31
<Justin Ridgewell>
What’s WebPerf WG?
22:05
<littledan>
https://www.w3.org/webperf/
22:05
<littledan>
I think a lot of the strongest use cases for AsyncContext in the web are around performance metrics, so we're going to discuss this there.
23:08
<Ben Newman (Apollo, @benjamn on GH)>
If we (non-champions) have additional use cases to suggest, should we open issues on the proposal repo? Or sketch them here?
23:19
<littledan>
Either an issue, here, or an explainer PR would all be good and helpful!
23:19
<littledan>
Whatever works for you