|
@ -75,14 +75,17 @@ object ScalaFXHelloWorld extends JFXApp with MainModule { |
|
|
} |
|
|
} |
|
|
// _ <- fib1.join |
|
|
// _ <- fib1.join |
|
|
} yield () |
|
|
} yield () |
|
|
application.runToFuture |
|
|
|
|
|
|
|
|
application.timed.runToFuture |
|
|
.onComplete(res => |
|
|
.onComplete(res => |
|
|
res match { |
|
|
res match { |
|
|
case Failure(exception) => { |
|
|
case Failure(exception) => { |
|
|
println("Application start failed. Reason -") |
|
|
println("Application start failed. Reason -") |
|
|
exception.printStackTrace() |
|
|
exception.printStackTrace() |
|
|
} |
|
|
} |
|
|
case Success(value) => println("Application started Successfully") |
|
|
|
|
|
|
|
|
case Success((duration, _)) => |
|
|
|
|
|
println( |
|
|
|
|
|
s"Application started successfully in ${duration.toSeconds} seconds" |
|
|
|
|
|
) |
|
|
} |
|
|
} |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|