aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/state
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-01-20 13:32:07 +0100
committerRobert Jaros <rjaros@finn.pl>2020-01-20 13:32:07 +0100
commit07cbe6495aa66470d56030a6d430808f927176e7 (patch)
tree6408aab717e300544d6adf0878c55d7c1564c565 /src/main/kotlin/pl/treksoft/kvision/state
parent2118dc75207d80eec33de8dc6241b962416c608e (diff)
downloadkvision-07cbe6495aa66470d56030a6d430808f927176e7.tar.gz
kvision-07cbe6495aa66470d56030a6d430808f927176e7.tar.bz2
kvision-07cbe6495aa66470d56030a6d430808f927176e7.zip
Fix tabulator module dependencies
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/state')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt b/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt
index f1cba7f0..c1fd0936 100644
--- a/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/state/ObservableState.kt
@@ -26,6 +26,11 @@ package pl.treksoft.kvision.state
*/
interface ObservableState<S> {
/**
+ * Get current state.
+ */
+ fun getState(): S
+
+ /**
* Subscribe for the state change notifications.
*/
fun subscribe(observer: (S) -> Unit): () -> Unit