!str #17189 Add withAttributes and named to Graph
* Remove optional attributes parameter in favor of withAttributes * Overload explosion when trying to add attributes to ZipWith. * Aligned with Flow and Source.
This commit is contained in:
parent
c98aee55ed
commit
c6404d3e44
24 changed files with 296 additions and 212 deletions
|
|
@ -21,4 +21,8 @@ trait Graph[+S <: Shape, +M] {
|
|||
* Every materializable element must be backed by a stream layout module
|
||||
*/
|
||||
private[stream] def module: StreamLayout.Module
|
||||
|
||||
def withAttributes(attr: OperationAttributes): Graph[S, M]
|
||||
|
||||
def named(name: String): Graph[S, M] = withAttributes(OperationAttributes.name(name))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue