shutdownWithJvm

fun Server.shutdownWithJvm(maxWaitTime: Duration)

Registers a JVM shutdown hook that gracefully shuts down this gRPC Server.

Extension function on Server.

Parameters

maxWaitTime

the maximum duration to wait for in-flight RPCs to complete before forcing shutdown