aboutsummaryrefslogtreecommitdiff
path: root/kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-11-07 22:16:46 +0100
committerRobert Jaros <rjaros@finn.pl>2018-11-07 22:16:46 +0100
commit40b9cc1f785eaae352267757ac9e091c25ed0744 (patch)
tree1c7dec688121c471c2ada361ca407a41ce1c7646 /kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft
parentdec46533acbfa4751337149dcf7b1a67f9bb42fd (diff)
downloadkvision-40b9cc1f785eaae352267757ac9e091c25ed0744.tar.gz
kvision-40b9cc1f785eaae352267757ac9e091c25ed0744.tar.bz2
kvision-40b9cc1f785eaae352267757ac9e091c25ed0744.zip
Upgrade to Kotlin 1.3.0 final.
Diffstat (limited to 'kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft')
-rw-r--r--kvision-modules/kvision-server-spring-boot/src/main/kotlin/pl/treksoft/kvision/remote/KVServer.kt5
1 files changed, 2 insertions, 3 deletions
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 <RESP> async(block: () -> RESP): Deferred<RESP> =
- GlobalScope.coroutinesAsync(Dispatchers.Unconfined) {
+ GlobalScope.coroutinesAsync {
block()
}
@@ -69,7 +68,7 @@ fun <RESP> asyncAuth(block: (Profile) -> RESP): Deferred<RESP> {
null
}
return profile?.let {
- GlobalScope.coroutinesAsync(Dispatchers.Unconfined) {
+ GlobalScope.coroutinesAsync {
block(it)
}
} ?: throw IllegalStateException("Profile not set!")