Make map stage final and refactor OneBoundedSetup to take a decider. (#21374)
* Remove new from Map constructions
This commit is contained in:
parent
fc3761bc4b
commit
b3bba1229f
3 changed files with 22 additions and 22 deletions
|
|
@ -25,8 +25,7 @@ import akka.stream.impl.Stages.DefaultAttributes
|
|||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
// FIXME: Not final because InterpreterSupervisionSpec. Some better option is needed here
|
||||
case class Map[In, Out](f: In ⇒ Out) extends GraphStage[FlowShape[In, Out]] {
|
||||
final case class Map[In, Out](f: In ⇒ Out) extends GraphStage[FlowShape[In, Out]] {
|
||||
val in = Inlet[In]("Map.in")
|
||||
val out = Outlet[Out]("Map.out")
|
||||
override val shape = FlowShape(in, out)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue