KVal

open class KVal<T>(value: T)

Functions

addListener
Link copied to clipboard
fun addListener(listener: (T, T) -> Unit): Long
close
Link copied to clipboard
fun close(reason: CloseReason)
map
Link copied to clipboard
fun <O> map(mapper: (T) -> O): KVal<O>
onClose
Link copied to clipboard
fun onClose(handler: () -> Unit)
removeListener
Link copied to clipboard
fun removeListener(handle: Long)
toString
Link copied to clipboard
open override fun toString(): String

Properties

value
Link copied to clipboard
open val value: T

Inheritors

KVar
Link copied to clipboard

Extensions

subList
Link copied to clipboard
fun <T : Any> KVal<List<T>>.subList(fromIx: Int, toIx: Int): KVal<List<T>>