remove

suspend fun remove(element: T): Boolean

Removes an element from the set.

This method removes the specified element from the set in a thread-safe approach.

Return

true if the element was removed successfully, false if it doesn't exist in the set.

Parameters

element

The element to be removed.