size

suspend fun size(): Int

Retrieves the current size of the set.

This method returns the number of elements in the set in a thread-safe approach.

Return

The size of the set.