From 40b9cc1f785eaae352267757ac9e091c25ed0744 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 7 Nov 2018 22:16:46 +0100 Subject: Upgrade to Kotlin 1.3.0 final. --- .../src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'kvision-modules/kvision-server-spring-boot/src') diff --git a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt index 730288a8..11b848bf 100644 --- a/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt +++ b/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt @@ -22,7 +22,6 @@ package pl.treksoft.kvision.remote import kotlinx.coroutines.Deferred -import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.GlobalScope import org.pac4j.core.context.J2EContext import org.pac4j.core.context.session.J2ESessionStore @@ -52,7 +51,7 @@ actual typealias Profile = CommonProfile * A helper extension function for asynchronous processing. */ fun async(block: () -> RESP): Deferred = - GlobalScope.coroutinesAsync(Dispatchers.Unconfined) { + GlobalScope.coroutinesAsync { block() } @@ -69,7 +68,7 @@ fun asyncAuth(block: (Profile) -> RESP): Deferred { null } return profile?.let { - GlobalScope.coroutinesAsync(Dispatchers.Unconfined) { + GlobalScope.coroutinesAsync { block(it) } } ?: throw IllegalStateException("Profile not set!") -- cgit