serenity
serenity copied to clipboard
Draft: LibWeb: Implement QueuingStrategy for WriteableStream and ReadableStream
Draft on top of https://github.com/SerenityOS/serenity/pull/19455 as otherwise would have conflicts in LibWeb's Forward.h
These set of changes aim to implement the optional QueuingStrategy strategy = {}
argument in the constructor of both ReadableStream and WritableStream - and the AO's required to implement that.
While implementing ByteLengthQueuingStrategy size algorithm found a bug in my ExtractSizeAlgorithm
AO implementation by mistakenly passing through chunk
as this value rather than as an argument. Everything works good after that though!
Pushed rebase after merge of https://github.com/SerenityOS/serenity/pull/19455