GrpcContextElement

class GrpcContextElement(grpcContext: Context) : ThreadContextElement<Context>

A CoroutineContext that propagates an associated io.grpc.Context to coroutines run using that context, regardless of thread.

Constructors

GrpcContextElement
Link copied to clipboard
fun GrpcContextElement(grpcContext: Context)

Types

Key
Link copied to clipboard
object Key : CoroutineContext.Key<GrpcContextElement>

Functions

fold
Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R
get
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
minusKey
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
plus
Link copied to clipboard
open operator fun plus(context: CoroutineContext): CoroutineContext
restoreThreadContext
Link copied to clipboard
open override fun restoreThreadContext(context: CoroutineContext, oldState: Context)
updateThreadContext
Link copied to clipboard
open override fun updateThreadContext(context: CoroutineContext): Context

Properties

key
Link copied to clipboard
open override val key: CoroutineContext.Key<GrpcContextElement>

Sources

jvm source
Link copied to clipboard