Adding links to wireTap and alsoTo docs (#25808)
This commit is contained in:
parent
039bb26d2c
commit
6e21853797
5 changed files with 37 additions and 0 deletions
|
|
@ -784,6 +784,8 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* Attaches the given [[Sink]] to this [[Flow]], meaning that elements that passes
|
||||
* through will also be sent to the [[Sink]].
|
||||
*
|
||||
* It is similar to [[#wireTap]] but will backpressure instead of dropping elements when the given [[Sink]] is not ready.
|
||||
*
|
||||
* '''Emits when''' element is available and demand exists both from the Sink and the downstream.
|
||||
*
|
||||
* '''Backpressures when''' downstream or Sink backpressures
|
||||
|
|
@ -799,6 +801,8 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* Attaches the given [[Sink]] to this [[Flow]], meaning that elements that passes
|
||||
* through will also be sent to the [[Sink]].
|
||||
*
|
||||
* It is similar to [[#wireTapMat]] but will backpressure instead of dropping elements when the given [[Sink]] is not ready.
|
||||
*
|
||||
* It is recommended to use the internally optimized `Keep.left` and `Keep.right` combiners
|
||||
* where appropriate instead of manually writing functions that pass through one of the values.
|
||||
*
|
||||
|
|
@ -841,6 +845,8 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* through will also be sent to the wire-tap Sink, without the latter affecting the mainline flow.
|
||||
* If the wire-tap Sink backpressures, elements that would've been sent to it will be dropped instead.
|
||||
*
|
||||
* It is similar to [[#alsoTo]] which does backpressure instead of dropping elements.
|
||||
*
|
||||
* '''Emits when''' element is available and demand exists from the downstream; the element will
|
||||
* also be sent to the wire-tap Sink if there is demand.
|
||||
*
|
||||
|
|
@ -859,6 +865,8 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
* through will also be sent to the wire-tap Sink, without the latter affecting the mainline flow.
|
||||
* If the wire-tap Sink backpressures, elements that would've been sent to it will be dropped instead.
|
||||
*
|
||||
* It is similar to [[#alsoToMat]] which does backpressure instead of dropping elements.
|
||||
*
|
||||
* It is recommended to use the internally optimized `Keep.left` and `Keep.right` combiners
|
||||
* where appropriate instead of manually writing functions that pass through one of the values.
|
||||
*
|
||||
|
|
@ -1227,6 +1235,8 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
|
|||
*
|
||||
* If the wire-tap operation is slow (it backpressures), elements that would've been sent to it will be dropped instead.
|
||||
*
|
||||
* It is similar to [[#alsoTo]] which does backpressure instead of dropping elements.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue