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:56 UTC

(incubator-pekko-http-quickstart-scala-g8) 01/01: Skip 'await'

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