Groups consecutive values into arrays of up to size items.
size
If the stream completes normally with fewer than size buffered items, the remaining items are emitted as a final smaller array.
If size is not a positive safe integer.
Groups consecutive values into arrays of up to
sizeitems.If the stream completes normally with fewer than
sizebuffered items, the remaining items are emitted as a final smaller array.