contains

suspend fun contains(element: T): Boolean

Checks if the set contains the specified element.

This method checks if the set contains the specified element in a thread-safe approach.

Return

true if the element is found in the set, false otherwise.

Parameters

element

The element to check for containment.