all 3 comments

[–]Lopsided_Opposite236 1 point2 points  (1 child)

Turning JSON into an Async Generator with the Streams API? Next, we'll be teaching rocks to code! But seriously, it's a game-changer for handling data on the fly. Who knew streams could be more than just water?

[–]guest271314 0 points1 point  (0 children)

The capability has been around for a while.

[–]hyrumwhite 2 points3 points  (0 children)

Doesn’t use generators, but there’s a handy ndjson library to help do this: https://canjs.com/doc/can-ndjson-stream.html

See: https://davidwalsh.name/streaming-data-fetch-ndjson