LazySetImpl

internal class LazySetImpl<E>(cache: Set<E>, sources: List<LazySet.DataSource<E>>) : AbstractFlow<E> , LazySet<E>

Constructors

Link copied to clipboard
fun <E> LazySetImpl(cache: Set<E>, sources: List<LazySet.DataSource<E>>)

Functions

Link copied to clipboard
suspend override fun collect(collector: FlowCollector<E>)
Link copied to clipboard
open suspend override fun collectSafely(collector: FlowCollector<E>)
Link copied to clipboard
open suspend override fun contains(element: Any?): Boolean
Link copied to clipboard
open suspend override fun isEmpty(): Boolean
Link copied to clipboard
open suspend override fun isNotEmpty(): Boolean
Link copied to clipboard
private fun LazySet.State<E>.remainingFlow(): Flow<Set<E>>
Link copied to clipboard
open override fun snapshot(): LazySet.State<E>
Link copied to clipboard
private fun updateCache(new: Set<E>, completed: List<LazySet.DataSource<E>>)

Properties

Link copied to clipboard
open override val isFullyCached: Boolean
Link copied to clipboard
internal val state: AtomicReference<LazySet.State<E>>

Sources

Link copied to clipboard