Skip to content

Commit

Permalink
chore: add docs to KaliumOffsetQueryPagingSource
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreferris committed Nov 9, 2023
1 parent 32846a6 commit b78c6ef
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ import kotlinx.coroutines.withContext
import kotlin.coroutines.CoroutineContext
import kotlin.properties.Delegates

/**
* This class is duplicated from sqlDelight []OffsetQueryPagingSource] so we can pass an initial offset instead of depending
* only on the offset result coming from the queryProvider callback.
*/
@Suppress("ComplexMethod")
internal class KaliumOffsetQueryPagingSource<RowType : Any>(
private val queryProvider: (limit: Int, offset: Int) -> Query<RowType>,
Expand Down

0 comments on commit b78c6ef

Please sign in to comment.