ObservableSet

class ObservableSet<T>(coroutineScope: CoroutineScope, initialValue: Set<T> = setOf())

Constructors

Link copied to clipboard
constructor(coroutineScope: CoroutineScope, initialValue: Set<T> = setOf())

Properties

Link copied to clipboard
val values: SharedFlow<Set<T>>

Functions

Link copied to clipboard
suspend fun add(element: T): Boolean
Link copied to clipboard
suspend fun addAll(elements: Collection<T>): Boolean
Link copied to clipboard
suspend fun remove(element: T): Boolean
Link copied to clipboard
suspend fun size(): Int