bluestream icon indicating copy to clipboard operation
bluestream copied to clipboard

maxSize for collect?

Open yocontra opened this issue 5 years ago • 2 comments

Would be nice to set a max buffer (or max array) size for collect

yocontra avatar Dec 12 '18 17:12 yocontra

This is similar to take from streaming-iterables. In the stream case we can't guarantee that we don't get more data than asked for. readasync might do what you're looking for.

reconbot avatar Dec 12 '18 21:12 reconbot

This would work for object streams

reconbot avatar Jan 22 '19 15:01 reconbot