bootstraponline
02/23/2019, 4:56 PMserver.start(wait = false)
however the server never stops.
server.stop(1, 1, TimeUnit.SECONDS)
server.application.dispose()
result in the process staying alive, even though the netty worker pool is freed. Is there a way to fully stop the server and let the process naturally exit?bootstraponline
02/23/2019, 5:32 PMserver.start(wait = false)
while (waitingForCallback) {
runBlocking { delay(1000) }
}
server.stop(0, 0, TimeUnit.SECONDS)
I ended up with this pattern, with waitingForCallback being set when a get path is hit on the server side.