containsKey

abstract suspend fun containsKey(key: K): Boolean

Checks if this map contains a mapping for the specified key. This is a suspendable, non-blocking operation.

Return

true if this map contains a mapping for the specified key, false otherwise.

Parameters

key

The key whose presence in this map is to be tested.