diff options
author | Allan Wang <me@allanwang.ca> | 2018-12-25 21:45:26 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2018-12-25 21:45:26 -0500 |
commit | f931e55d534e6162748f9fa888e7313cc2f0b619 (patch) | |
tree | 34ee7c82f49420d83ee44d77cace56cd8fbd3582 /core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt | |
parent | d850474b0a82ee00d094990d9bd3392ae8cd9575 (diff) | |
download | kau-f931e55d534e6162748f9fa888e7313cc2f0b619.tar.gz kau-f931e55d534e6162748f9fa888e7313cc2f0b619.tar.bz2 kau-f931e55d534e6162748f9fa888e7313cc2f0b619.zip |
Use withContext instead of async
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt index 60ef236..6867b49 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt @@ -49,13 +49,12 @@ import ca.allanwang.kau.logging.KL import com.afollestad.materialdialogs.MaterialDialog import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.GlobalScope import kotlin.coroutines.CoroutineContext /** * Created by Allan Wang on 2017-06-03. */ -private object ContextHelper: CoroutineScope { +private object ContextHelper : CoroutineScope { val handler = Handler(Looper.getMainLooper()) |