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

@ -30,9 +30,9 @@ object ActorPublisherDocSpec {
var buf = Vector.empty[Job]
def receive = {
case job: Job if buf.size == MaxBufferSize
case job: Job if buf.size == MaxBufferSize =>
sender() ! JobDenied
case job: Job
case job: Job =>
sender() ! JobAccepted
if (buf.isEmpty && totalDemand > 0)
onNext(job)
@ -40,9 +40,9 @@ object ActorPublisherDocSpec {
buf :+= job
deliverBuf()
}
case Request(_)
case Request(_) =>
deliverBuf()
case Cancel
case Cancel =>
context.stop(self)
}
@ -80,7 +80,7 @@ class ActorPublisherDocSpec extends AkkaSpec {
val jobManagerSource = Source.actorPublisher[JobManager.Job](JobManager.props)
val ref = Flow[JobManager.Job]
.map(_.payload.toUpperCase)
.map { elem println(elem); elem }
.map { elem => println(elem); elem }
.to(Sink.ignore)
.runWith(jobManagerSource)