Update to kotlinx.coroutines 0.23.4
This commit is contained in:
parent
3abae1cc75
commit
5a2e8a838c
2 changed files with 3 additions and 3 deletions
|
@ -228,7 +228,7 @@ dependencies {
|
||||||
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
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-core:$coroutines_version"
|
||||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import kotlinx.coroutines.experimental.android.UI
|
||||||
import kotlinx.coroutines.experimental.launch
|
import kotlinx.coroutines.experimental.launch
|
||||||
|
|
||||||
fun launchUI(block: suspend CoroutineScope.() -> Unit): Job =
|
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 =
|
fun launchNow(block: suspend CoroutineScope.() -> Unit): Job =
|
||||||
launch(UI, CoroutineStart.UNDISPATCHED, null, block)
|
launch(UI, CoroutineStart.UNDISPATCHED, null, null, block)
|
||||||
|
|
Reference in a new issue