Package modulecheck.utils.lazy
Types
Link copied to clipboard
Link copied to clipboard
internal class LazyDeferredImpl<T>(val action: suspend () -> T, val lock: Mutex) : LazyDeferred<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal class LazyResetsImpl<out T : Any>(val resetManager: ResetManager, val valueFactory: suspend () -> T) : LazyResets<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
class ResetManager(val delegates: MutableCollection<Resets> = mutableListOf())
Content copied to clipboard
Functions
Link copied to clipboard
fun <E> Lazy<Set<E>>.asDataSource(priority: LazySet.DataSource.Priority = MEDIUM): LazySet.DataSource<E>
Content copied to clipboard
fun <E> Flow<E>.asDataSource(priority: LazySet.DataSource.Priority = MEDIUM): LazySet.DataSource<E>
Content copied to clipboard
fun <E> LazyDeferred<Set<E>>.asDataSource(priority: LazySet.DataSource.Priority = MEDIUM): LazySet.DataSource<E>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal fun <E> createLazySet(children: Collection<LazySet<E>>, sources: Collection<LazySet.DataSource<E>>): LazySet<E>
Content copied to clipboard
Link copied to clipboard
fun <E> dataSource(priority: LazySet.DataSource.Priority = MEDIUM, factory: suspend () -> Set<E>): LazySet.DataSource<E>
Content copied to clipboard
Link copied to clipboard
fun <E> dataSourceOf(vararg elements: E, priority: LazySet.DataSource.Priority = MEDIUM): LazySet.DataSource<E>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Lazily invokes action the first time await or join is called.
Link copied to clipboard
inline fun <T : Any> ResetManager.lazyResets(noinline valueFactory: suspend () -> T): LazyResets<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard