Merge pull request #19835 from agolubev/19818-Flow.transform-deprected-agolubev
=str #19818 Flow.transform should be deprected too
This commit is contained in:
commit
664071afb6
5 changed files with 5 additions and 0 deletions
|
|
@ -988,6 +988,7 @@ final class Flow[-In, +Out, +Mat](delegate: scaladsl.Flow[In, Out, Mat]) extends
|
|||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*/
|
||||
@deprecated("Use via(GraphStage) instead.", "2.4.3")
|
||||
def transform[U](mkStage: function.Creator[Stage[Out, U]]): javadsl.Flow[In, U, Mat] =
|
||||
new Flow(delegate.transform(() ⇒ mkStage.create()))
|
||||
|
||||
|
|
|
|||
|
|
@ -1428,6 +1428,7 @@ final class Source[+Out, +Mat](delegate: scaladsl.Source[Out, Mat]) extends Grap
|
|||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*/
|
||||
@deprecated("Use via(GraphStage) instead.", "2.4.3")
|
||||
def transform[U](mkStage: function.Creator[Stage[Out, U]]): javadsl.Source[U, Mat] =
|
||||
new Source(delegate.transform(() ⇒ mkStage.create()))
|
||||
|
||||
|
|
|
|||
|
|
@ -837,6 +837,7 @@ class SubFlow[-In, +Out, +Mat](delegate: scaladsl.SubFlow[Out, Mat, scaladsl.Flo
|
|||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*/
|
||||
@deprecated("Use via(GraphStage) instead.", "2.4.3")
|
||||
def transform[U](mkStage: function.Creator[Stage[Out, U]]): SubFlow[In, U, Mat] =
|
||||
new SubFlow(delegate.transform(() ⇒ mkStage.create()))
|
||||
|
||||
|
|
|
|||
|
|
@ -835,6 +835,7 @@ class SubSource[+Out, +Mat](delegate: scaladsl.SubFlow[Out, Mat, scaladsl.Source
|
|||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*/
|
||||
@deprecated("Use via(GraphStage) instead.", "2.4.3")
|
||||
def transform[U](mkStage: function.Creator[Stage[Out, U]]): SubSource[U, Mat] =
|
||||
new SubSource(delegate.transform(() ⇒ mkStage.create()))
|
||||
|
||||
|
|
|
|||
|
|
@ -1103,6 +1103,7 @@ trait FlowOps[+Out, +Mat] {
|
|||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*/
|
||||
@deprecated("Use via(GraphStage) instead.", "2.4.3")
|
||||
def transform[T](mkStage: () ⇒ Stage[Out, T]): Repr[T] =
|
||||
via(new PushPullGraphStage((attr) ⇒ mkStage(), Attributes.none))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue