coroutineContext

abstract fun coroutineContext(call: ServerCall<*, *>, headers: Metadata): CoroutineContext(source)

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

if the call should be closed with the Status in the exception and further processing suppressed