parent
63ccdeec16
commit
b1df13d4d4
221 changed files with 1528 additions and 1580 deletions
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
package akka.stream.tck
|
||||
|
||||
import java.util.concurrent.{ Flow => JavaFlow }
|
||||
import java.util.concurrent.{ Flow ⇒ JavaFlow }
|
||||
|
||||
import akka.NotUsed
|
||||
import akka.stream.scaladsl.{ Flow, JavaFlowSupport, Sink, Source }
|
||||
|
|
@ -14,9 +14,8 @@ class IterablePublisherViaJavaFlowPublisherTest extends AkkaPublisherVerificatio
|
|||
override def createPublisher(elements: Long): Publisher[Int] = {
|
||||
val sourceViaJavaFlowPublisher: JavaFlow.Publisher[Int] = Source(iterable(elements))
|
||||
.runWith(JavaFlowSupport.Sink.asPublisher(fanout = false))
|
||||
|
||||
|
||||
val javaFlowPublisherIntoAkkaSource: Source[Int, NotUsed] =
|
||||
val javaFlowPublisherIntoAkkaSource: Source[Int, NotUsed] =
|
||||
JavaFlowSupport.Source.fromPublisher(sourceViaJavaFlowPublisher)
|
||||
|
||||
javaFlowPublisherIntoAkkaSource
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue