ktor-server-core / io.ktor.util / DispatcherWithShutdown / prepareShutdown

prepareShutdown

fun prepareShutdown(): Unit

Prepare for shutdown so we will not dispatch on delegate anymore. It is still possible to dispatch coroutines.