include initialAttributes of GraphStage, #22463

* these must also be included via setAttributes because
  because it will create island for async (dispatcher attribute)
* better actor name of GraphStageIsland, we need it in tests for
  lookup of the actor
* this unlocks OutputStreamSourceSpec and InputStreamSinkSpec
This commit is contained in:
Patrik Nordwall 2017-03-07 19:40:50 +01:00
parent d5e117bfc9
commit 1a74b43cd6
8 changed files with 49 additions and 31 deletions

View file

@ -30,8 +30,7 @@ import scala.compat.java8.FutureConverters._
*/
final class Source[+Out, +Mat](
override val traversalBuilder: LinearTraversalBuilder,
override val shape: SourceShape[Out]
)
override val shape: SourceShape[Out])
extends FlowOpsMat[Out, Mat] with Graph[SourceShape[Out], Mat] {
override type Repr[+O] = Source[O, Mat @uncheckedVariance]
@ -53,8 +52,7 @@ final class Source[+Out, +Mat](
new Source[T, Mat3](
traversalBuilder.append(toAppend, flow.shape, combine),
SourceShape(flow.shape.out)
)
SourceShape(flow.shape.out))
}
/**
@ -157,8 +155,7 @@ final class Source[+Out, +Mat](
*/
override def async: Repr[Out] = new Source(
traversalBuilder.makeIsland(GraphStageTag),
shape
)
shape)
/**
* Converts this Scala DSL element to it's Java DSL counterpart.