remove

open suspend override fun remove(key: String): String?

Removes the mapping for a key from this map if it is present. This operation is performed atomically and is thread-safe.

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.