orbit-proto / io.rouz.grpc / ContextCoroutineContextElement

ContextCoroutineContextElement

class ContextCoroutineContextElement : ThreadContextElement<Context>

Types

Key

companion object Key : Key<ContextCoroutineContextElement>

Constructors

<init>

ContextCoroutineContextElement()

Properties

key

val key: Key<ContextCoroutineContextElement>

Functions

restoreThreadContext

fun restoreThreadContext(context: CoroutineContext, oldState: Context): Unit

updateThreadContext

fun updateThreadContext(context: CoroutineContext): Context