=htt,str,doc #20009 Fix for found unsafe graph stages

This commit is contained in:
Johan Andrén 2016-03-14 11:54:31 +01:00
parent ed8ba7873c
commit 7fe4b01f01
4 changed files with 7 additions and 4 deletions

View file

@ -384,7 +384,8 @@ public class GraphStageDocTest extends AbstractJavaTest {
//#async-side-channel
// will close upstream when the future completes
// will close upstream in all materializations of the stage instance
// when the completion stage completes
public class KillSwitch<A> extends GraphStage<FlowShape<A, A>> {
private final CompletionStage<Done> switchF;

View file

@ -274,7 +274,8 @@ class GraphStageDocSpec extends AkkaSpec {
import system.dispatcher
//#async-side-channel
// will close upstream when the future completes
// will close upstream in all materializations of the graph stage instance
// when the future completes
class KillSwitch[A](switch: Future[Unit]) extends GraphStage[FlowShape[A, A]] {
val in = Inlet[A]("KillSwitch.in")