kvision / pl.treksoft.kvision.state / ObservableState / subscribe

subscribe

(js) abstract fun subscribe(observer: (S) -> Unit): () -> Unit

Subscribe for the state change notifications.