
as.stream.lines.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dispatch-core_2.11 Show documentation
Show all versions of dispatch-core_2.11 Show documentation
Core Dispatch module wrapping async-http-client
package dispatch.as.stream
import dispatch._
import com.ning.http.client._
object Lines {
def apply[U](f: String => U) =
new stream.StringsByLine[Unit] {
def onStringBy(string: String) {
f(string)
}
def onCompleted = ()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy