!str #16902: Unify stream internal representation
also =str #16912: Fix StreamTcpSpec flakiness
This commit is contained in:
parent
cac9c9f2fb
commit
8d77fa8b29
230 changed files with 7814 additions and 9596 deletions
23
akka-stream/src/main/scala/akka/stream/Graph.scala
Normal file
23
akka-stream/src/main/scala/akka/stream/Graph.scala
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://www.typesafe.com>
|
||||
*/
|
||||
package akka.stream
|
||||
|
||||
import akka.stream.impl.StreamLayout
|
||||
|
||||
trait Graph[+S <: Shape, +M] {
|
||||
/**
|
||||
* Type-level accessor for the shape parameter of this graph.
|
||||
*/
|
||||
type Shape = S
|
||||
/**
|
||||
* The shape of a graph is all that is externally visible: its inlets and outlets.
|
||||
*/
|
||||
def shape: S
|
||||
/**
|
||||
* INTERNAL API.
|
||||
*
|
||||
* Every materializable element must be backed by a stream layout module
|
||||
*/
|
||||
private[stream] def module: StreamLayout.Module
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue