named should not replace attributes #21068
Add attributes in named rather than replace, additionally: test coverage and missing method on RunnableGraph added
This commit is contained in:
parent
f1c589639c
commit
61f566063b
8 changed files with 61 additions and 8 deletions
|
|
@ -356,7 +356,11 @@ final case class RunnableGraph[+Mat](val module: StreamLayout.Module) extends Gr
|
|||
override def withAttributes(attr: Attributes): RunnableGraph[Mat] =
|
||||
new RunnableGraph(module.withAttributes(attr))
|
||||
|
||||
override def named(name: String): RunnableGraph[Mat] = withAttributes(Attributes.name(name))
|
||||
override def named(name: String): RunnableGraph[Mat] =
|
||||
addAttributes(Attributes.name(name))
|
||||
|
||||
override def async: RunnableGraph[Mat] =
|
||||
addAttributes(Attributes.asyncBoundary)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue