Dropping the use of ExecutionContext.MODULE$
This commit is contained in:
parent
109dbe1fed
commit
3cf023e723
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ public class FutureDocTestBase {
|
|||
ExecutorService yourExecutorServiceGoesHere = Executors.newSingleThreadExecutor();
|
||||
//#diy-execution-context
|
||||
ExecutionContext ec =
|
||||
ExecutionContext$.MODULE$.fromExecutorService(yourExecutorServiceGoesHere);
|
||||
ExecutionContexts.fromExecutorService(yourExecutorServiceGoesHere);
|
||||
|
||||
//Use ec with your Futures
|
||||
Future<String> f1 = Futures.successful("foo");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue