remove

abstract suspend fun remove(key: K): V?

Removes the mapping for a key from this map if it is present. This is a suspendable, non-blocking operation.

Return

The previous value associated with key, or null if there was no mapping for key.

Parameters

key

The key whose mapping is to be removed from the map.