We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43dce9d commit 182e951Copy full SHA for 182e951
stub/src/main/java/io/grpc/kotlin/CoroutineContextServerInterceptor.kt
@@ -16,9 +16,7 @@ import io.grpc.Context as GrpcContext
16
*/
17
abstract class CoroutineContextServerInterceptor : ServerInterceptor {
18
companion object {
19
- // This is deliberately kept visibility-restricted; it's intentional that the only way to affect
20
- // the CoroutineContext is to extend CoroutineContextServerInterceptor.
21
- internal val COROUTINE_CONTEXT_KEY : GrpcContext.Key<CoroutineContext> =
+ val COROUTINE_CONTEXT_KEY : GrpcContext.Key<CoroutineContext> =
22
GrpcContext.keyWithDefault("grpc-kotlin-coroutine-context", EmptyCoroutineContext)
23
24
private fun GrpcContext.extendCoroutineContext(coroutineContext: CoroutineContext): GrpcContext {
0 commit comments