DataSource

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

Since

0.12.0

Inheritors

Properties

Link copied to clipboard
abstract val isCompleted: Boolean
Link copied to clipboard

The priority which should be applied to this source while in a LazySet. Higher priority sources are invoked first.

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun await(): Set<E>
Link copied to clipboard
open operator override fun compareTo(other: LazySet.DataSource<*>): Int
Link copied to clipboard
abstract suspend fun get(): Set<E>

Called to retrieve this source's data. Implementations are thread-safe and lazy.

Link copied to clipboard
abstract fun getCompleted(): Set<E>

Immediately returns the deferred value if already completed.