SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.46k stars 3.18k forks source link

LibWeb: Implement static method ReadableStream.from(asyncIterable) #24548

Closed kennethmyhra closed 3 months ago

kennethmyhra commented 3 months ago

Adds the static method ReadableStream.from() which can be used to wrap iterable and async iterable objects as readable streams.

Commits cherry picked from: https://github.com/LadybirdWebBrowser/ladybird/pull/108