subscribing To
fun <T> subscribingTo(stream: Stream<T>, onNext: (T) -> Unit? = null): ReadOnlyProperty<Any?, T>
Content copied to clipboard
Creates a property that is subscribed to a stream.
The property will always contain the current value of the stream. When a new value is received from the stream the component redraws itself.
Parameters
stream
The stream to subscribe to.