reduce
Start with first element and then apply the current and next value to the given function, when upstream complete the current value is emitted downstream.
Signature
Source.reduce
Source.reduce
Flow.reduce
Flow.reduce
Description
Start with first element and then apply the current and next value to the given function, when upstream complete the current value is emitted downstream. Similar to fold
.
Reactive Streams semantics
emits when upstream completes
backpressures when downstream backpressures
completes when upstream completes