chore: Add @since 1.1.0 to contramap operator.
This commit is contained in:
parent
447728f3c0
commit
43bab55616
4 changed files with 4 additions and 0 deletions
|
|
@ -539,6 +539,7 @@ final class Flow[In, Out, Mat](delegate: scaladsl.Flow[In, Out, Mat]) extends Gr
|
|||
* '''Backpressures when''' original [[Flow]] backpressures
|
||||
*
|
||||
* '''Cancels when''' original [[Flow]] cancels
|
||||
* @since 1.1.0
|
||||
*/
|
||||
def contramap[In2](f: function.Function[In2, In]): javadsl.Flow[In2, Out, Mat] =
|
||||
new Flow(delegate.contramap(elem => f(elem)))
|
||||
|
|
|
|||
|
|
@ -568,6 +568,7 @@ final class Sink[In, Mat](delegate: scaladsl.Sink[In, Mat]) extends Graph[SinkSh
|
|||
* '''Backpressures when''' original [[Sink]] backpressures
|
||||
*
|
||||
* '''Cancels when''' original [[Sink]] backpressures
|
||||
* @since 1.1.0
|
||||
*/
|
||||
def contramap[In2](f: function.Function[In2, In]): Sink[In2, Mat] =
|
||||
javadsl.Flow.fromFunction(f).toMat(this, Keep.right[NotUsed, Mat])
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ final class Flow[-In, +Out, +Mat](
|
|||
* '''Backpressures when''' original [[Flow]] backpressures
|
||||
*
|
||||
* '''Cancels when''' original [[Flow]] cancels
|
||||
* @since 1.1.0
|
||||
*/
|
||||
def contramap[In2](f: In2 => In): Flow[In2, Out, Mat] =
|
||||
Flow.fromFunction(f).viaMat(this)(Keep.right)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ final class Sink[-In, +Mat](override val traversalBuilder: LinearTraversalBuilde
|
|||
* '''Backpressures when''' original [[Sink]] backpressures
|
||||
*
|
||||
* '''Cancels when''' original [[Sink]] cancels
|
||||
* @since 1.1.0
|
||||
*/
|
||||
def contramap[In2](f: In2 => In): Sink[In2, Mat] = Flow.fromFunction(f).toMat(this)(Keep.right)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue