Lookint at the definition of the Flow class on https://doc.akka.io/api/akka/current/akka/stream/scaladsl/Flow.html, it has the following signature:
final class Flow[-In, +Out, +Mat]
The question is, why is the type of the third parameter is +Mat
? I thought, +Mat
makes only sense on Sink
, because
Sink
consumes the stream.
Even the Source
has the +Mat
:
final class Source[+Out, +Mat]