Skip to content

Commit

Permalink
Update kotlinx.coroutines to v1.9.0 (#2300)
Browse files Browse the repository at this point in the history
* Update kotlinx.coroutines to v1.9.0

* Update experimental coroutine APIs to delicate opt-in

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jake Wharton <[email protected]>
  • Loading branch information
renovate[bot] and JakeWharton authored Sep 13, 2024
1 parent 835b012 commit 301bedd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "2.0.20"
kotlinx-coroutines = "1.8.1"
kotlinx-coroutines = "1.9.0"
kotlinx-serialization = "1.7.2"
androidx-activity = "1.9.2"
androidx-compose-ui = "1.7.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import kotlin.coroutines.CoroutineContext
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.job
Expand Down Expand Up @@ -68,7 +68,7 @@ internal abstract class CodeSession<A : AppService>(
/** Invoked on [TreehouseDispatchers.zipline]. */
protected abstract fun ziplineStart()

@OptIn(ExperimentalCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class)
fun stop() {
dispatchers.checkUi()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import app.cash.zipline.loader.ZiplineHttpClient
import app.cash.zipline.loader.ZiplineLoader
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.mapNotNull
Expand Down Expand Up @@ -108,7 +107,6 @@ internal class RealTreehouseApp<A : AppService> private constructor(
* Continuously polls for updated code, and emits a new [LoadResult] instance when new code is
* found.
*/
@OptIn(ExperimentalCoroutinesApi::class) // limitedParallelism is experimental.
private fun ziplineFlow(
eventListenerFactory: EventListener.Factory,
): Flow<LoadResult> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.MutableStateFlow
Expand Down Expand Up @@ -504,7 +504,7 @@ private class ViewContentCodeBinding<A : AppService>(
}
}

@OptIn(ExperimentalCoroutinesApi::class)
@OptIn(DelicateCoroutinesApi::class)
fun cancel(exception: Throwable?) {
dispatchers.checkUi()

Expand Down

0 comments on commit 301bedd

Please sign in to comment.