!str #19732 Concise and consistent way to mark async boundaries
This commit is contained in:
parent
d154fad4e9
commit
4e49d75ad8
25 changed files with 125 additions and 194 deletions
|
|
@ -26,5 +26,10 @@ trait Graph[+S <: Shape, +M] {
|
|||
|
||||
def named(name: String): Graph[S, M] = withAttributes(Attributes.name(name))
|
||||
|
||||
/**
|
||||
* Put an asynchronous boundary around this `Graph`
|
||||
*/
|
||||
def async: Graph[S, M] = addAttributes(Attributes.asyncBoundary)
|
||||
|
||||
def addAttributes(attr: Attributes): Graph[S, M] = withAttributes(module.attributes and attr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue