coroutineContext

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

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.

Sources

jvm source
Link copied to clipboard