aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-server-javalin/src
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2020-03-12 13:16:04 +0100
committerRobert Jaros <rjaros@finn.pl>2020-03-12 13:16:04 +0100
commit5f8443b94a94c6fc5cdecf2c91d89b48e3eb6598 (patch)
treef2de4c8eb7cdde71896bc24d39b034f274c13f63 /kvision-modules/kvision-server-javalin/src
parentb862dc8bcde84023a001deabaaa7fe119bd649e5 (diff)
downloadkvision-5f8443b94a94c6fc5cdecf2c91d89b48e3eb6598.tar.gz
kvision-5f8443b94a94c6fc5cdecf2c91d89b48e3eb6598.tar.bz2
kvision-5f8443b94a94c6fc5cdecf2c91d89b48e3eb6598.zip
Remove some experimental annotations
Diffstat (limited to 'kvision-modules/kvision-server-javalin/src')
-rw-r--r--kvision-modules/kvision-server-javalin/src/jvmMain/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvision-modules/kvision-server-javalin/src/jvmMain/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt b/kvision-modules/kvision-server-javalin/src/jvmMain/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt
index e6428524..e3189a74 100644
--- a/kvision-modules/kvision-server-javalin/src/jvmMain/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt
+++ b/kvision-modules/kvision-server-javalin/src/jvmMain/kotlin/pl/treksoft/kvision/remote/KVServiceManager.kt
@@ -53,8 +53,7 @@ import kotlin.reflect.KClass
/**
* Multiplatform service manager for Javalin.
*/
-@Suppress("LargeClass", "TooManyFunctions")
-@OptIn(ExperimentalCoroutinesApi::class)
+@Suppress("LargeClass", "TooManyFunctions", "BlockingMethodInNonBlockingContext")
actual open class KVServiceManager<T : Any> actual constructor(val serviceClass: KClass<T>) {
companion object {
@@ -389,6 +388,7 @@ actual open class KVServiceManager<T : Any> actual constructor(val serviceClass:
* @param function a function of the receiver
* @param route a route
*/
+ @OptIn(ExperimentalCoroutinesApi::class)
protected actual inline fun <reified PAR1 : Any, reified PAR2 : Any> bind(
noinline function: suspend T.(ReceiveChannel<PAR1>, SendChannel<PAR2>) -> Unit,
route: String?