← Back to Kairo Docs|API Reference (Dokka)

startAndWait

suspend fun Server.startAndWait(release: suspend () -> Unit)

Starts the Server and suspends until JVM termination (SIGTERM, SIGINT).

Parameters

release

Called during shutdown. Should call Server.stop and clean up other resources.