avoiding the superposing of the buttons and the code (#30210)

This commit is contained in:
franciscolopezsancho 2021-05-03 09:28:31 +01:00 committed by GitHub
parent 099e20ec6d
commit 4f278e5eaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,8 @@ class StreamTestKitDocSpec extends AkkaSpec {
"strict collection" in {
//#strict-collection
val sinkUnderTest = Flow[Int].map(_ * 2).toMat(Sink.fold(0)(_ + _))(Keep.right)
val sinkUnderTest =
Flow[Int].map(_ * 2).toMat(Sink.fold(0)(_ + _))(Keep.right)
val future = Source(1 to 4).runWith(sinkUnderTest)
val result = Await.result(future, 3.seconds)