Adding support for task batching complete with tests

This commit is contained in:
Viktor Klang 2012-08-03 23:33:45 +02:00
parent eb23b5b88d
commit 2af08127de
7 changed files with 84 additions and 18 deletions

View file

@ -86,7 +86,7 @@ public class FutureDocTestBase {
ExecutorService yourExecutorServiceGoesHere = Executors.newSingleThreadExecutor();
//#diy-execution-context
ExecutionContext ec =
ExecutionContexts.fromExecutorService(yourExecutorServiceGoesHere);
ExecutionContext$.MODULE$.fromExecutorService(yourExecutorServiceGoesHere);
//Use ec with your Futures
Future<String> f1 = Futures.successful("foo");