Skip to content

Commit

Permalink
Fix Broadcast examples, as they currently fail.
Browse files Browse the repository at this point in the history
Use different outputs for broadcast
  • Loading branch information
toshetah committed May 11, 2021
1 parent f568d4d commit 82fc6c0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ object BroadcastDocExample {
val broadcast = builder.add(Broadcast[Int](3))
source ~> broadcast
broadcast.out(0) ~> countS
broadcast.out(0) ~> minS
broadcast.out(0) ~> maxS
broadcast.out(1) ~> minS
broadcast.out(2) ~> maxS
ClosedShape
})
.run()
Expand All @@ -54,8 +54,8 @@ object BroadcastDocExample {
val broadcast = builder.add(Broadcast[Int](3))
source ~> broadcast
broadcast.out(0) ~> Flow[Int].async ~> countS
broadcast.out(0) ~> Flow[Int].async ~> minS
broadcast.out(0) ~> Flow[Int].async ~> maxS
broadcast.out(1) ~> Flow[Int].async ~> minS
broadcast.out(2) ~> Flow[Int].async ~> maxS
ClosedShape
})
//#broadcast-async
Expand Down

0 comments on commit 82fc6c0

Please sign in to comment.