Skip to content

Instantly share code, notes, and snippets.

@diegovar
Created August 10, 2012 19:27
Show Gist options
  • Save diegovar/3317134 to your computer and use it in GitHub Desktop.
Save diegovar/3317134 to your computer and use it in GitHub Desktop.
Using Akka Futures in the REPL
//Using Futures in the REPL:
import akka.dispatch.{ Await, ExecutionContext, Future, Promise }
import akka.util.duration._
import java.util.concurrent.Executors
val pool = Executors.newCachedThreadPool()
implicit val ec = ExecutionContext.fromExecutorService(pool)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment