coroutine Context
abstract fun coroutineContext(call: ServerCall<*, *>, headers: Metadata): CoroutineContext
Content copied to clipboard
Override this function to return a CoroutineContext in which to execute call and headers. The returned CoroutineContext will override any corresponding context elements in the server object.
This function will be called each time a call is executed.
Throws
io. grpc. Status Exception
if the call should be closed with the Status in the exception and further processing suppressed