Skip to content

Commit

Permalink
Merge pull request #608 from FranAguilera/change_as_worker_dispatcher…
Browse files Browse the repository at this point in the history
…_to_default

Change default CoroutineContext from empty to default for the RibCoroutineWorker<>Worker conversion
  • Loading branch information
FranAguilera authored Aug 10, 2023
2 parents e6f98bd + 94fffa8 commit 1f8839b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,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) :
Expand Down

0 comments on commit 1f8839b

Please sign in to comment.