From c856526af892440add3fc955032974bc3b67ad4e Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 2 Apr 2018 01:24:04 +0200 Subject: Documentation fix. --- src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt index ba9467c3..cf3c2e07 100644 --- a/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt +++ b/src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt @@ -213,7 +213,7 @@ fun isIE11(): Boolean = window.navigator.userAgent.matches("Trident\\/7\\.") * @return file content */ @Suppress("EXPERIMENTAL_FEATURE_WARNING") -suspend fun File.getContent() = suspendCancellableCoroutine { cont -> +suspend fun File.getContent(): String = suspendCancellableCoroutine { cont -> val reader = FileReader() reader.onload = { @Suppress("UnsafeCastFromDynamic") -- cgit