`wait = true` waits till thread completes. Withou...
# ktor
n
wait = true
waits till thread completes. Without it application will be closed. Maybe you should try:
Copy code
fun main(args: Array<String>) {
    embeddedServer(Netty, port = 8080, module = Application::apiModule).start(wait = false)
    embeddedServer(Netty, port = 9090, module = Application::internalModule).start(wait = true)
}
👍 1