Skip to content

Commit

Permalink
Add a default dispatcher to the KeyedQueryPagingSource backed QueryPa…
Browse files Browse the repository at this point in the history
…gingSource function (#3385)
  • Loading branch information
veyndan committed Jul 19, 2022
1 parent 2c35de5 commit 9c13481
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -133,7 +133,7 @@ fun <RowType : Any> QueryPagingSource(
@Suppress("FunctionName")
fun <Key : Any, RowType : Any> QueryPagingSource(
transacter: Transacter,
context: CoroutineContext,
context: CoroutineContext = Dispatchers.IO,
pageBoundariesProvider: (anchor: Key?, limit: Long) -> Query<Key>,
queryProvider: (beginInclusive: Key, endExclusive: Key?) -> Query<RowType>,
): PagingSource<Key, RowType> = KeyedQueryPagingSource(
Expand Down

0 comments on commit 9c13481

Please sign in to comment.