Abstract Coroutine Context Element
abstract class AbstractCoroutineContextElement(key: CoroutineContext.Key<*>) : CoroutineContext.Element
Content copied to clipboard
Base class for CoroutineContext.Element implementations.
Since Kotlin
1.3
Constructors
AbstractCoroutineContextElement
Link copied to clipboard
Functions
fold
Link copied to clipboard
get
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Content copied to clipboard
Returns the element with the given key from this context or null
.
minus Key
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Content copied to clipboard
Returns a context containing elements from this context, but without an element with the specified key.
Properties
key
Link copied to clipboard