'git mv' rst resources to md
This is mainly intended to keep the git history as neat as possible. No actual conversion yet, so now both the rst and the paradox docs are broken, which will be fixed in the next commits.
This commit is contained in:
parent
5507147073
commit
a4a0d308ad
553 changed files with 0 additions and 0 deletions
|
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
* Copyright (C) 2015-2017 Lightbend Inc. <http://www.lightbend.com>
|
||||
*/
|
||||
package docs.stream
|
||||
|
||||
import akka.stream.scaladsl._
|
||||
import akka.testkit.AkkaSpec
|
||||
|
||||
class MigrationsScala extends AkkaSpec {
|
||||
|
||||
"Examples in migration guide" must {
|
||||
"compile" in {
|
||||
lazy val dontExecuteMe = {
|
||||
//#expand-continually
|
||||
Flow[Int].expand(Iterator.continually(_))
|
||||
//#expand-continually
|
||||
//#expand-state
|
||||
Flow[Int].expand(i => {
|
||||
var state = 0
|
||||
Iterator.continually({
|
||||
state += 1
|
||||
(i, state)
|
||||
})
|
||||
})
|
||||
//#expand-state
|
||||
|
||||
//#async
|
||||
val flow = Flow[Int].map(_ + 1)
|
||||
Source(1 to 10).via(flow.async)
|
||||
//#async
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue