minusPolymorphicKey
@ExperimentalStdlibApi
fun
Element
.
minusPolymorphicKey
(
key
:
Key
<
*
>
)
:
CoroutineContext
(source)
Returns empty coroutine context if the element is associated with the given
key
in a polymorphic manner
or
null
otherwise.
This method returns empty context if either
Element.key
is equal to the given
key
or if the
key
is associated
with
Element.key
via
AbstractCoroutineContextKey
.
See
AbstractCoroutineContextKey
for the example of usage.