Skip to content

Commit

Permalink
chore: Remove the deprecation of statefulMapConcat operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin committed Feb 26, 2024
1 parent d63aecc commit 9b00834
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Transform each element into zero or more elements that are individually passed d

@@@ warning

The `statefulMapConcat` operator has been deprecated.
The `statefulMapConcat` operator doesn't handle upstream's completion signal since the state kept in the closure can be lost.

- for stateful mapping, use @ref:[statefulMap](./statefulMap.md)
- for stateful map concat, use @ref:[statefulMap](./statefulMap.md) with @ref:[mapConcat](./mapConcat.md).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,6 @@ final class Flow[In, Out, Mat](delegate: scaladsl.Flow[In, Out, Mat]) extends Gr
*
* '''Cancels when''' downstream cancels
*/
@deprecated("Use `statefulMap` with `mapConcat` instead.", "1.0.2")
def statefulMapConcat[T](
f: function.Creator[function.Function[Out, java.lang.Iterable[T]]]): javadsl.Flow[In, T, Mat] =
new Flow(delegate.statefulMapConcat { () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2609,7 +2609,6 @@ final class Source[Out, Mat](delegate: scaladsl.Source[Out, Mat]) extends Graph[
*
* '''Cancels when''' downstream cancels
*/
@deprecated("Use `statefulMap` with `mapConcat` instead.", "1.0.2")
def statefulMapConcat[T](f: function.Creator[function.Function[Out, java.lang.Iterable[T]]]): javadsl.Source[T, Mat] =
new Source(delegate.statefulMapConcat { () =>
val fun = f.create()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ class SubFlow[In, Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@deprecated("Use `statefulMap` with `mapConcat` instead.", "1.0.2")
def statefulMapConcat[T](f: function.Creator[function.Function[Out, java.lang.Iterable[T]]]): SubFlow[In, T, Mat] =
new SubFlow(delegate.statefulMapConcat { () =>
val fun = f.create()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ class SubSource[Out, Mat](
*
* '''Cancels when''' downstream cancels
*/
@deprecated("Use `statefulMap` with `mapConcat` instead.", "1.0.2")
def statefulMapConcat[T](f: function.Creator[function.Function[Out, java.lang.Iterable[T]]]): SubSource[T, Mat] =
new SubSource(delegate.statefulMapConcat { () =>
val fun = f.create()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,6 @@ trait FlowOps[+Out, +Mat] {
*
* See also [[FlowOps.mapConcat]]
*/
@deprecated("Use `statefulMap` with `mapConcat` instead.", "1.0.2")
def statefulMapConcat[T](f: () => Out => IterableOnce[T]): Repr[T] =
via(new StatefulMapConcat(f))

Expand Down

0 comments on commit 9b00834

Please sign in to comment.