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
  • Loading branch information
veyndan committed Jul 19, 2022
1 parent e4b1064 commit a923283
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,
dispatcher: CoroutineDispatcher,
dispatcher: CoroutineDispatcher = 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 a923283

Please sign in to comment.