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
@corem hm batch might be a more challenging one. groupedalways groups elements into groups of n elements (except maybe for stream completion), while batch does so only if the downstream consumer is slower. So in normal conditions you might not see any groups at all.
Implementing this would probably require some channels + select.
Inspired by https://github.com/apache/pekko/blob/main/stream/src/main/scala/org/apache/pekko/stream/scaladsl/Flow.scala:
sample(n: Int)
-> emit every nth element from the parent flowzipWithIndex
debounce
(remove subsequent, repeating elements)debounceBy(T => U)
recover(Throwable => T)
(emit one element when the stream fails)recoverWith(Throwable => Flow)
(start alternative flow on failure)recoverWithRetry(RetryConfig)(Throwable => Flow)
mapWithResource(=> R, R => Option[U])((R, T) => U)
mapWithCloseableResource(=> R)((R, T) => U)
scan(V)((V, T) => T)
conflate
batch
expand
extrapolate
The text was updated successfully, but these errors were encountered: