=str clarify invocation semantics of wireTap, make test less flaky #24979

This commit is contained in:
Konrad `ktoso` Malawski 2018-04-26 22:56:58 +09:00 committed by Johan Andrén
parent 9051e2fcda
commit ca2fe92f0d
6 changed files with 16 additions and 8 deletions

View file

@ -132,6 +132,8 @@ class SubSource[Out, Mat](delegate: scaladsl.SubFlow[Out, Mat, scaladsl.Source[O
* This is a simplified version of `wireTap(Sink)` that takes only a simple procedure.
* Elements will be passed into this "side channel" function, and any of its results will be ignored.
*
* If the wire-tap operation is slow (it backpressures), elements that would've been sent to it will be dropped instead.
*
* This operation is useful for inspecting the passed through element, usually by means of side-effecting
* operations (such as `println`, or emitting metrics), for each element without having to modify it.
*