minusKey

Common
JVM
JS
Native
1.0
fun minusKey(key: Key<*>): CoroutineContext

Returns a context containing elements from this context, but without an element with the specified key. Keys are compared by reference, that is to remove an element from the context the reference to its actual key object must be presented to this function.