kschlesselmann
02/15/2022, 2:23 PMand/or
.flowOn`would result in parallelism so in my mind it'd take 300ms for simple
to complete and then again 300 ms to process the last element of simple
=> ~600ms to complete everything.elizarov
02/15/2022, 2:26 PMJoffrey
02/15/2022, 2:26 PMcollect
on the consumer side contains a delay(300)
, and 3 elements are collected, it needs at least 900ms to complete. If you add the 100ms that was needed by the source flow to emit the first element and unlock the first collection iteration, you have 1000msJoffrey
02/15/2022, 2:26 PMelizarov
02/15/2022, 2:27 PMbuffer
is not processing elements in parallel. It makes emitter before buffer
and collector after buffer
to run in parallel to each other. (this might be the source of the original confusion)kschlesselmann
02/15/2022, 2:31 PM.flatMap
on another Mono
.