=str #19818 Flow.transform should be deprected too

This commit is contained in:
Alexander Golubev 2016-02-20 15:41:51 -05:00
parent b37c2c0b29
commit c7c4ced93a
5 changed files with 5 additions and 0 deletions

View file

@ -1433,6 +1433,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()))