I've been playing around with an implementation of concurrent versions of AsyncIterator.prototype.{map,filter,flatMap}. Ended up making a visualizer where you can drive the Promises yourself, which I think helps understand how it behaves. Let me know your thoughts. bakkot.github.io/async-iterat...
Kevin Gibbons
bakkot.github.ioConcurrent AsyncIterator .filter
I'm working on fixing a longstanding memory leak in Promise.race in V8. Right now the thing in the way is getting a node maintainer to apply one suggestion and land a small open PR which already has four approvals. Anyone able to help? github.com/nodejs/node/...
github.comsrc: skip JS callback for settled Promise.race losers by Felipeness · Pull Request #62336 · nodejs/nodeSummary
Fixes #51452
When Promise.race() settles, V8 fires kPromiseResolveAfterResolved / kPromiseRejectAfterResolved for each "losing" promise. Node's PromiseRejectCallback in src/no...
Put together a presentation on a possible direction for getting native structured concurrency in JS, taking as a constraint that we already live in a world where cancellation means AbortController. Interested in your thoughts! docs.google.com/presentation...
docs.google.comTowards structured concurrencyTowards Structured Concurrency
You are up to date.