2 Commits

1 changed files with 6 additions and 3 deletions
Split View
  1. +6
    -3
      src/main/scala/nova/monadic_sfx/Main.scala

src/main/scala/nova/monadic_sfx/SFXActors.scala → src/main/scala/nova/monadic_sfx/Main.scala View File

@ -31,7 +31,7 @@ import io.odin.syntax._
import io.odin.monix._
import nova.monadic_sfx.pages.HomePage
object ScalaFXHelloWorld extends JFXApp with MainModule {
object Main extends JFXApp with MainModule {
val logger = consoleLogger().withAsyncUnsafe()
@ -75,14 +75,17 @@ object ScalaFXHelloWorld extends JFXApp with MainModule {
}
// _ <- fib1.join
} yield ()
application.runToFuture
application.timed.runToFuture
.onComplete(res =>
res match {
case Failure(exception) => {
println("Application start failed. Reason -")
exception.printStackTrace()
}
case Success(value) => println("Application started Successfully")
case Success((duration, _)) =>
println(
s"Application started successfully in ${duration.toSeconds} seconds"
)
}
)

Loading…
Cancel
Save