From 94fffa83e96598ba1abebb5dc7bc28ac932a5ae9 Mon Sep 17 00:00:00 2001 From: Francisco Aguilera Date: Thu, 10 Aug 2023 10:12:52 -0700 Subject: [PATCH] Change dispatcher from empty to default for the Worker<>RibCoroutine conversion --- .../src/main/kotlin/com/uber/rib/core/RibCoroutineWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/libraries/rib-base/src/main/kotlin/com/uber/rib/core/RibCoroutineWorker.kt b/android/libraries/rib-base/src/main/kotlin/com/uber/rib/core/RibCoroutineWorker.kt index ddeb57e17..dc804a136 100644 --- a/android/libraries/rib-base/src/main/kotlin/com/uber/rib/core/RibCoroutineWorker.kt +++ b/android/libraries/rib-base/src/main/kotlin/com/uber/rib/core/RibCoroutineWorker.kt @@ -193,7 +193,7 @@ public fun Worker.asRibCoroutineWorker(): RibCoroutineWorker = /** Converts a [RibCoroutineWorker] to a [Worker]. */ @JvmOverloads public fun RibCoroutineWorker.asWorker( - coroutineContext: CoroutineContext = EmptyCoroutineContext, + coroutineContext: CoroutineContext = RibDispatchers.Default, ): Worker = RibCoroutineWorkerToWorkerAdapter(this, coroutineContext) internal open class WorkerToRibCoroutineWorkerAdapter(private val worker: Worker) :