Texonom
Texonom
/
Application
Application
/Network Science/ICT/Computer Network/Internet/WWW/Web Development/Web API/Web Base API/Web Stream API/
ReadableStream API
Search

ReadableStream API

Creator
Creator
Seonglae Cho
Created
Created
2021 May 12 6:57
Editor
Editor
Seonglae Cho
Edited
Edited
2023 Nov 16 6:23
Refs
Refs
ReadableStream APIs
ReadableStream getReader()
 
 

Iterable ReadableStream - not yet

 
 
ReadableStream should be an async iterable · Issue #778 · whatwg/streams
(I'm adding this mostly as a tracking bug after I asked about it in the wrong place) NodeJS is looking into supporting async iterables as a way to stream data, and it would be great if fetch (or the readable stream part of fetch) support...
ReadableStream should be an async iterable · Issue #778 · whatwg/streams
https://github.com/whatwg/streams/issues/778
ReadableStream should be an async iterable · Issue #778 · whatwg/streams
Async iterators and generators
Streaming fetches are supported in Chrome, Edge, and Safari, and they look a little like this: This code is pretty readable thanks to async functions ( here's a tutorial if you're unfamiliar with those), but it's still a little clumsy.
Async iterators and generators
https://jakearchibald.com/2017/async-iterators-and-generators/#making-streams-iterate
Async iterators and generators
 
 

Recommendations

Texonom
Texonom
/
Application
Application
/Network Science/ICT/Computer Network/Internet/WWW/Web Development/Web API/Web Base API/Web Stream API/
ReadableStream API
Copyright Seonglae Cho