Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a default dispatcher to the KeyedQueryPagingSource backed QueryPagingSource function #3385

Merged

Conversation

veyndan
Copy link
Collaborator

@veyndan veyndan commented Jul 19, 2022

This is expected, as per the documentation:

By default, queries are performed on `Dispatchers.IO` if no dispatcher is specified. Consumers expecting to use RxJava's `Scheduler` to perform queries should use the [`Scheduler.asCoroutineDispatcher`](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-rx2/kotlinx.coroutines.rx2/io.reactivex.-scheduler/as-coroutine-dispatcher.html) extension function.

@veyndan veyndan force-pushed the veyndan/2022-07-19/default-dispatcher branch from a923283 to ba0ded2 Compare July 19, 2022 13:34
@veyndan veyndan merged commit 9c13481 into cashapp:master Jul 19, 2022
@veyndan veyndan deleted the veyndan/2022-07-19/default-dispatcher branch July 19, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants