{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/5316","labels_url":"https://api.github.com/repos/playframework/playframework/issues/5316/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/5316/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/5316/events","html_url":"https://github.com/playframework/playframework/issues/5316","id":119399307,"number":5316,"title":"javaWs still returns a Promise instead of CompletionStage as of 2.5.0-M1","user":{"login":"oleg-gr","id":3584701,"avatar_url":"https://avatars.githubusercontent.com/u/3584701?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-gr","html_url":"https://github.com/oleg-gr","followers_url":"https://api.github.com/users/oleg-gr/followers","following_url":"https://api.github.com/users/oleg-gr/following{/other_user}","gists_url":"https://api.github.com/users/oleg-gr/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-gr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-gr/subscriptions","organizations_url":"https://api.github.com/users/oleg-gr/orgs","repos_url":"https://api.github.com/users/oleg-gr/repos","events_url":"https://api.github.com/users/oleg-gr/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-gr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-30T00:25:22Z","updated_at":"2015-12-03T03:16:35Z","closed_at":null,"body":"[javaWs still returns a Promise instead of CompletionStage.](https://github.com/playframework/playframework/blob/416f2df60ecb0facf753e6f0c9dba0edf4261e29/framework/src/play-java-ws/src/main/java/play/libs/ws/WSRequest.java#L36) Is this going to be addressed in M2? I am trying to rewrite a whole project before the actual 2.5.0 release and it's really inconvenient that some interfaces still return Promises. "},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/161504052","html_url":"https://github.com/playframework/playframework/issues/5316#issuecomment-161504052","issue_url":"https://api.github.com/repos/playframework/playframework/issues/5316","id":161504052,"user":{"login":"oleg-gr","id":3584701,"avatar_url":"https://avatars.githubusercontent.com/u/3584701?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-gr","html_url":"https://github.com/oleg-gr","followers_url":"https://api.github.com/users/oleg-gr/followers","following_url":"https://api.github.com/users/oleg-gr/following{/other_user}","gists_url":"https://api.github.com/users/oleg-gr/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-gr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-gr/subscriptions","organizations_url":"https://api.github.com/users/oleg-gr/orgs","repos_url":"https://api.github.com/users/oleg-gr/repos","events_url":"https://api.github.com/users/oleg-gr/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-gr/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T03:16:35Z","updated_at":"2015-12-03T03:16:35Z","body":"@gmethvin @hepin1989 \r\nI am curious about something. How can scala ExecutionContext be used with CompletionStage now?\r\n\r\nIf you get an execution context like this:\r\n```\r\nExecutionContext myExecutionContext = Akka.system().dispatchers().lookup(\"123\");\r\n```\r\nin 2.4.x you could do something like\r\n```\r\nF.Promise<Integer> integerPromise = F.Promise.promise(() -> 100, myExecutionContext);\r\n```\r\nbut since now Play is switching to using CompletionStage instead, there is no easy way to convert Scala's `ExecutionContext` to Java's `Executor` as far as I know. So something like this won't work obviously\r\n```\r\nCompletionStage<Integer> integerCompletionStage = CompletableFuture.supplyAsync(() -> 100, myExecutionContext);\r\n```\r\nSo what's your suggested way of managing multiple thread pools for java projects?"}}