LazySet

interface LazySet<out E> : Flow<E> , LazySetComponent<E> (source)

Inheritors

Types

Link copied to clipboard

A Lazy data source for a LazySet, which performs some suspending operation get in order to incrementally add data to the LazySet.

Link copied to clipboard
class State<out E>(val cache: Set<E>, val remaining: List<LazySet.DataSource<E>>)

Properties

Link copied to clipboard
abstract val isFullyCached: Boolean

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun collect(collector: FlowCollector<E>)
Link copied to clipboard
abstract suspend fun contains(element: Any?): Boolean
Link copied to clipboard
abstract suspend fun containsAny(other: LazySet<Any?>): Boolean
Link copied to clipboard
suspend fun <T : B, E : B, B> LazySet<T>.containsAny(elements: Collection<E>): Boolean
Link copied to clipboard
inline suspend fun <T : E, E> LazySet<E>.getOrNull(element: E): T?
Link copied to clipboard
abstract suspend fun isEmpty(): Boolean
Link copied to clipboard
abstract suspend fun isNotEmpty(): Boolean
Link copied to clipboard
abstract fun snapshot(): LazySet.State<E>
Link copied to clipboard
fun <E> Flow<E>.toLazySet(priority: LazySet.DataSource.Priority = MEDIUM): LazySet<E>