Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. val pool = Executors.newCachedThreadPool()
  2. implicit val ec = ExecutionContext.fromExecutorService(pool)
  3. implicit val actorSystem = ActorSystem("FutureSystem")
  4.  
  5. val future = Future {
  6. 1 + 1
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement