Re: [whatwg/dom] once() and on() async utilities for EventTarget (Issue #1038)

I dunno what the general guidance is, but should web APIs that return async iterators be using `ReadableStream` instead? My assumption was that streams were meant to be the defacto primitive for operations that returned buffered data.

That would also cover all the behaviour of how things like the abort signal, cancellation and such work, as these are all baked into the streams spec already.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1038#issuecomment-984257669

Received on Thursday, 2 December 2021 03:23:25 UTC