Re: [whatwg/webidl] Accept `iterable` and `async iterable` in functions? (Issue #1461)

`sequence<BufferSource>` wouldn't serve our use case because it makes a copy of all the data, whereas

> we explicitly want to allow the function to retain a reference to the passed object, and consume the values produced by the iterable incrementally, to conserve memory.

In other words, the differences described [here](https://whatpr.org/webidl/1397.html#idl-async-iterable-type) are important for us (beyond accepting async iterables).


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

Message ID: <whatwg/webidl/issues/1461/2574705539@github.com>

Received on Tuesday, 7 January 2025 08:46:44 UTC