ktor-server-host-common / io.ktor.server.engine / stop

stop

fun ApplicationEngine.stop(gracePeriod: Long, timeout: Long, timeUnit: TimeUnit): Unit

Stops this ApplicationEngine

Parameters

gracePeriod - the maximum amount of time for activity to cool down

timeout - the maximum amount of time to wait until server stops gracefully

timeUnit - the TimeUnit for gracePeriod and timeout