replace unicode arrows

* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
This commit is contained in:
Patrik Nordwall 2019-02-09 15:25:39 +01:00
parent e4d38f92a4
commit 5c96a5f556
1521 changed files with 18846 additions and 18786 deletions

View file

@ -4,7 +4,7 @@
package akka.stream.scaladsl
import java.util.{ concurrent juc }
import java.util.{ concurrent => juc }
import akka.NotUsed
import akka.stream.impl.JavaFlowAndRsConverters
@ -58,15 +58,15 @@ object JavaFlowSupport {
/**
* Creates a Flow from a Reactive Streams [[org.reactivestreams.Processor]]
*/
def fromProcessor[I, O](processorFactory: () juc.Flow.Processor[I, O]): Flow[I, O, NotUsed] = {
fromProcessorMat(() (processorFactory(), NotUsed))
def fromProcessor[I, O](processorFactory: () => juc.Flow.Processor[I, O]): Flow[I, O, NotUsed] = {
fromProcessorMat(() => (processorFactory(), NotUsed))
}
/**
* Creates a Flow from a Reactive Streams [[java.util.concurrent.Flow.Processor]] and returns a materialized value.
*/
def fromProcessorMat[I, O, M](processorFactory: () (juc.Flow.Processor[I, O], M)): Flow[I, O, M] =
scaladsl.Flow.fromProcessorMat { ()
def fromProcessorMat[I, O, M](processorFactory: () => (juc.Flow.Processor[I, O], M)): Flow[I, O, M] =
scaladsl.Flow.fromProcessorMat { () =>
val (processor, mat) = processorFactory()
(processor.asRs, mat)
}
@ -82,7 +82,7 @@ object JavaFlowSupport {
Source.asSubscriber[In].via(self)
.toMat(Sink.asPublisher[Out](fanout = false))(Keep.both)
.mapMaterializedValue {
case (sub, pub) new juc.Flow.Processor[In, Out] {
case (sub, pub) => new juc.Flow.Processor[In, Out] {
override def onError(t: Throwable): Unit = sub.onError(t)
override def onSubscribe(s: juc.Flow.Subscription): Unit = sub.onSubscribe(s)
override def onComplete(): Unit = sub.onComplete()