We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WebApp.scala
1 parent e6d04a2 commit 0bc8f57Copy full SHA for 0bc8f57
example/scalalib/web/3-todo-http4s/src/WebApp.scala
@@ -1,5 +1,6 @@
1
package webapp
2
3
+import scala.concurrent.duration.Duration
4
import scalatags.Text.all._
5
import scalatags.Text.tags2
6
import cats.effect._
@@ -17,7 +18,12 @@ object WebApp extends IOApp.Simple {
17
18
case class Todo(checked: Boolean, text: String)
19
20
def run = mkService.toResource.flatMap { service =>
- EmberServerBuilder.default[IO].withHttpApp(service).withPort(port"8084").build
21
+ EmberServerBuilder
22
+ .default[IO]
23
+ .withHttpApp(service)
24
+ .withPort(port"8084")
25
+ .withShutdownTimeout(Duration.Zero)
26
+ .build
27
}.useForever
28
29
def mkService =
0 commit comments