You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with streams on either web streams or node streams are troublesome. cuz they are inconsistent with each other.
Therefore ppl resort to a more lower level syntax that works for both node:stream and web streams with the help of async for loop and Symbol.asyncIterators
forawait(constitemofreadable){console.log(item)}
Making another transformation to the stream is easy too. just need to do:
NodeJS, deno, and web streams polyfill and the spec have this Symbol.asyncIterator
but non of the browser have this and there are a few tickets on this on their part.
I just wish for there to be a polyfill / patch in this missing feature, so that we can start using it. (not neccessary have to include the hole stream polyfill.
What
Working with streams on either web streams or node streams are troublesome. cuz they are inconsistent with each other.
Therefore ppl resort to a more lower level syntax that works for both
node:stream
and web streams with the help of async for loop andSymbol.asyncIterators
Making another transformation to the stream is easy too. just need to do:
NodeJS, deno, and web streams polyfill and the spec have this
Symbol.asyncIterator
but non of the browser have this and there are a few tickets on this on their part.
I just wish for there to be a polyfill / patch in this missing feature, so that we can start using it. (not neccessary have to include the hole stream polyfill.
The text was updated successfully, but these errors were encountered: