Created
August 10, 2012 19:27
-
-
Save diegovar/3317134 to your computer and use it in GitHub Desktop.
Using Akka Futures in the REPL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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