Stream collect is a package that wraps your stream and waits for it to completely finish when the stream is finished. It just omits a promise. So theoretically you should just be able to use await promise dot all promise all settled with regular streams Or web streams. But then you can also call back to get the chunks as they're streaming in Yeah, I guess that goes to show it is a little confusing where that line is drawn between some of these older apis that we've been using with like node streams first this web streams api,.
In this Hasty Treat, Scott and Wes explain the what, why, and how of web streaming, and some of the jargon you might encounter with web streams.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
Tweet us your tasty treats