Update to kotlinx.coroutines 0.23.4

This commit is contained in:
Samuel Bronson 2019-09-18 01:31:15 -04:00
parent 3abae1cc75
commit 5a2e8a838c
2 changed files with 3 additions and 3 deletions

View file

@ -228,7 +228,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
final coroutines_version = '0.22.2'
final coroutines_version = '0.23.4'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
}

View file

@ -7,7 +7,7 @@ import kotlinx.coroutines.experimental.android.UI
import kotlinx.coroutines.experimental.launch
fun launchUI(block: suspend CoroutineScope.() -> Unit): Job =
launch(UI, CoroutineStart.DEFAULT, null, block)
launch(UI, CoroutineStart.DEFAULT, null, null, block)
fun launchNow(block: suspend CoroutineScope.() -> Unit): Job =
launch(UI, CoroutineStart.UNDISPATCHED, null, block)
launch(UI, CoroutineStart.UNDISPATCHED, null, null, block)