I m trying out the example given at http://dispatch-classic.databinder.net/Choose+an+Executor.html for dispatch-nio: Example given:
import dispatch._
val h = new nio.Http
val f = h(url("http://www.scala-lang.org/") as_str)
My code:
import dispatch._
val h = new nio.Http
var host = "http://www.scala-lang.org";
val f: Future[String] = h(url("http://www.scala-lang.org/") as_str)
f.apply();
But it doesn't recognize nio and as_str keywords. Could anyone please suggest what would be the problem?