Fix Broadcast examples, as they currently fail.
Use different outputs for broadcast
This commit is contained in:
parent
f568d4d4f9
commit
82fc6c0e68
1 changed files with 4 additions and 4 deletions
|
|
@ -40,8 +40,8 @@ object BroadcastDocExample {
|
||||||
val broadcast = builder.add(Broadcast[Int](3))
|
val broadcast = builder.add(Broadcast[Int](3))
|
||||||
source ~> broadcast
|
source ~> broadcast
|
||||||
broadcast.out(0) ~> countS
|
broadcast.out(0) ~> countS
|
||||||
broadcast.out(0) ~> minS
|
broadcast.out(1) ~> minS
|
||||||
broadcast.out(0) ~> maxS
|
broadcast.out(2) ~> maxS
|
||||||
ClosedShape
|
ClosedShape
|
||||||
})
|
})
|
||||||
.run()
|
.run()
|
||||||
|
|
@ -54,8 +54,8 @@ object BroadcastDocExample {
|
||||||
val broadcast = builder.add(Broadcast[Int](3))
|
val broadcast = builder.add(Broadcast[Int](3))
|
||||||
source ~> broadcast
|
source ~> broadcast
|
||||||
broadcast.out(0) ~> Flow[Int].async ~> countS
|
broadcast.out(0) ~> Flow[Int].async ~> countS
|
||||||
broadcast.out(0) ~> Flow[Int].async ~> minS
|
broadcast.out(1) ~> Flow[Int].async ~> minS
|
||||||
broadcast.out(0) ~> Flow[Int].async ~> maxS
|
broadcast.out(2) ~> Flow[Int].async ~> maxS
|
||||||
ClosedShape
|
ClosedShape
|
||||||
})
|
})
|
||||||
//#broadcast-async
|
//#broadcast-async
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue