which is used as a materialized value for Sources/Sinks that work with IO.
This commit is contained in:
parent
53ad1085ec
commit
f2553eb3b6
22 changed files with 278 additions and 92 deletions
|
|
@ -6,6 +6,7 @@ package docs.stream.io
|
|||
import java.io.File
|
||||
|
||||
import akka.stream._
|
||||
import akka.stream.io.IOResult
|
||||
import akka.stream.scaladsl.{ FileIO, Sink, Source }
|
||||
import akka.stream.testkit.Utils._
|
||||
import akka.stream.testkit._
|
||||
|
|
@ -45,7 +46,7 @@ class StreamFileDocSpec extends AkkaSpec(UnboundedMailboxConfig) {
|
|||
|
||||
//#file-source
|
||||
|
||||
val foreach: Future[Long] = FileIO.fromFile(file)
|
||||
val foreach: Future[IOResult] = FileIO.fromFile(file)
|
||||
.to(Sink.ignore)
|
||||
.run()
|
||||
//#file-source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue