Closed qwwdfsad closed 6 days ago
A few things about this PR:
chunked
operator, and whatever we do, chunked(n)
is likely to be here as the shorthand syntaxtransform
version (chunked(n, transform)
) is not added even though the stdlib has one -- we have a strong preference for proper separation of concerns. The documentation sample provides a clear substituteAPI shape brain dump (eventually I'll move it towards a better-structured issue, but not there yet):
There exists a whole bunch of possibilities, use cases and things full-blown chunked
family might/should address
windowed
-- the same, but buffers are overlappedwindowed
-- the same as chunked
, but it yields Flow<Flow<T>>
. #2989The problem with time is that it requires the actual concurrency, while the size-based version does not. I'm still exploring the possibility of something like chunkedTransform { /* decide whether it's time-based or not */ }
, but not much of ideas for now.
Fixes #1290