diff options
author | Robert Jaros <rjaros@finn.pl> | 2019-02-14 14:32:09 +0100 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2019-02-14 14:35:25 +0100 |
commit | 9623a6edcb96a24de8ded5c9a876a1a038c6ce1d (patch) | |
tree | bacbc5be412f8ccc5c4a19f62b1d2ad5dc881e76 /src/main/kotlin/pl/treksoft/kvision/utils | |
parent | 57afa10054753dd2926615be002fdd5de464fdd8 (diff) | |
download | kvision-9623a6edcb96a24de8ded5c9a876a1a038c6ce1d.tar.gz kvision-9623a6edcb96a24de8ded5c9a876a1a038c6ce1d.tar.bz2 kvision-9623a6edcb96a24de8ded5c9a876a1a038c6ce1d.zip |
Change the receiver type of syncWithList function
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/utils')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt index e252d672..778210ab 100644 --- a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt +++ b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt @@ -23,7 +23,6 @@ package pl.treksoft.kvision.utils -import com.lightningkite.kotlin.observable.list.ObservableList import kotlinx.coroutines.suspendCancellableCoroutine import org.w3c.files.File import org.w3c.files.FileReader @@ -206,9 +205,9 @@ suspend fun File.getContent(): String = suspendCancellableCoroutine { cont -> } /** - * Utility extension function to synchronise elements of the ObservableList. + * Utility extension function to synchronise elements of the MutableList. */ -fun <T> ObservableList<T>.syncWithList(list: List<T>) { +fun <T> MutableList<T>.syncWithList(list: List<T>) { if (list.isEmpty()) { this.clear() } else { |