diff --git a/api/src/main/scala/server/Server.scala b/api/src/main/scala/server/Server.scala index c8d1801..86baf1b 100644 --- a/api/src/main/scala/server/Server.scala +++ b/api/src/main/scala/server/Server.scala @@ -6,8 +6,11 @@ import akka.http.scaladsl.Http import settings.Settings import system.Simulation +import scala.concurrent.Await import scala.concurrent.ExecutionContextExecutor +import scala.concurrent.Promise import scala.concurrent.duration.FiniteDuration +import scala.concurrent.duration.Duration object Server { @@ -39,4 +42,7 @@ object Server { } } + val keepAlive = Promise[Unit].future + Await.result(keepAlive, Duration.Inf) + }