=str IO stream sink/source materialized value must be boxed explicitly

This commit is contained in:
Konrad Malawski 2015-04-24 20:22:16 +02:00
parent 6d08cd48c6
commit 60f0bfba5d
5 changed files with 18 additions and 15 deletions

View file

@ -14,6 +14,8 @@ import akka.stream.testkit.Utils._
import akka.stream.testkit._
import akka.util.ByteString
import scala.concurrent.Future
class StreamFileDocSpec extends AkkaSpec(UnboundedMailboxConfig) {
implicit val ec = system.dispatcher
@ -45,8 +47,9 @@ class StreamFileDocSpec extends AkkaSpec(UnboundedMailboxConfig) {
//#file-source
SynchronousFileSource(file)
.runForeach((chunk: ByteString) handle(chunk))
val foreach: Future[Long] = SynchronousFileSource(file)
.to(Sink.ignore)
.run()
//#file-source
}