=str #17453: Fix substream RS compliance, awaitAllStagesStopped and Fanin leak
This commit is contained in:
parent
6d08cd48c6
commit
8a7f6a357d
7 changed files with 40 additions and 15 deletions
|
|
@ -256,6 +256,8 @@ private[akka] object StreamSupervisor {
|
|||
final case class Children(children: Set[ActorRef])
|
||||
/** Testing purpose */
|
||||
final case object StopChildren
|
||||
/** Testing purpose */
|
||||
final case object StoppedChildren
|
||||
}
|
||||
|
||||
private[akka] class StreamSupervisor(settings: ActorFlowMaterializerSettings) extends Actor {
|
||||
|
|
@ -267,8 +269,10 @@ private[akka] class StreamSupervisor(settings: ActorFlowMaterializerSettings) ex
|
|||
case Materialize(props, name) ⇒
|
||||
val impl = context.actorOf(props, name)
|
||||
sender() ! impl
|
||||
case GetChildren ⇒ sender() ! Children(context.children.toSet)
|
||||
case StopChildren ⇒ context.children.foreach(context.stop)
|
||||
case GetChildren ⇒ sender() ! Children(context.children.toSet)
|
||||
case StopChildren ⇒
|
||||
context.children.foreach(context.stop)
|
||||
sender() ! StoppedChildren
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue