bob icon indicating copy to clipboard operation
bob copied to clipboard

Make Stream() an async iterator

Open Fishrock123 opened this issue 5 years ago • 1 comments

I think Stream() would be a good place for this, what does everyone else think?

We should also be sure to handle cases such as https://github.com/nodejs/node/issues/28194

Fishrock123 avatar Jun 14 '19 00:06 Fishrock123

Stream is a utility for connecting multiple bob streams together. It seems to be used like pipeline()

For async iterator use case we can just export a function or class to make the iterator.

Doing this in stream() means you cannot really create an iterator for a single source or duplex cleanly

Raynos avatar Jun 19 '19 23:06 Raynos