Merge pull request #19578 from akka/wip-19440-completionStage-RK

#19440 replace Scala Future usage with CompletionStage in javadsl
This commit is contained in:
Roland Kuhn 2016-01-24 22:14:18 +01:00
commit 6ba20ac673
118 changed files with 1646 additions and 1379 deletions

View file

@ -105,9 +105,9 @@ class BasicDirectivesExamplesSpec extends RoutingSpec {
def sample() =
path("sample") {
extractExecutionContext { implicit ec =>
extractExecutionContext { implicit executor =>
complete {
Future(s"Run on ${ec.##}!") // uses the `ec` ExecutionContext
Future(s"Run on ${executor.##}!") // uses the `executor` ExecutionContext
}
}
}
@ -132,9 +132,9 @@ class BasicDirectivesExamplesSpec extends RoutingSpec {
//#extractExecutionContext-0
def sample() =
path("sample") {
extractExecutionContext { implicit ec =>
extractExecutionContext { implicit executor =>
complete {
Future(s"Run on ${ec.##}!") // uses the `ec` ExecutionContext
Future(s"Run on ${executor.##}!") // uses the `executor` ExecutionContext
}
}
}