You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2023/12/02 22:04:55 UTC
(incubator-pekko-http-quickstart-scala-g8) branch noAwait created (now 7d0f1d9)
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a change to branch noAwait
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-http-quickstart-scala-g8.git
at 7d0f1d9 Skip 'await'
This branch includes the following new commits:
new 7d0f1d9 Skip 'await'
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org
(incubator-pekko-http-quickstart-scala-g8) 01/01: Skip 'await'
Posted by fa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch noAwait
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-http-quickstart-scala-g8.git
commit 7d0f1d9f0f24e1c37fd5a72790d7a3a621101ca8
Author: Arnout Engelen <ar...@bzzt.net>
AuthorDate: Tue Feb 20 17:08:27 2018 +0100
Skip 'await'
The JVM will stay up until all threads are stopped anyway
---
.../main/scala/com/lightbend/akka/http/sample/QuickstartServer.scala | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/main/g8/src/main/scala/com/lightbend/akka/http/sample/QuickstartServer.scala b/src/main/g8/src/main/scala/com/lightbend/akka/http/sample/QuickstartServer.scala
index 52e8ce1..d7daada 100644
--- a/src/main/g8/src/main/scala/com/lightbend/akka/http/sample/QuickstartServer.scala
+++ b/src/main/g8/src/main/scala/com/lightbend/akka/http/sample/QuickstartServer.scala
@@ -1,8 +1,5 @@
package com.lightbend.akka.http.sample
-import scala.concurrent.Await
-import scala.concurrent.duration.Duration
-
import akka.actor.{ ActorRef, ActorSystem }
import akka.http.scaladsl.Http
import akka.http.scaladsl.server.Route
@@ -29,8 +26,6 @@ object QuickstartServer extends App with UserRoutes {
Http().bindAndHandle(routes, "localhost", 8080)
println(s"Server online at http://localhost:8080/")
-
- Await.result(system.whenTerminated, Duration.Inf)
//#http-server
//#main-class
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org