Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Add a sample showing how to synchronously await for remote loads to be applied #987

Merged
merged 4 commits into from
May 21, 2021

Conversation

dlam
Copy link
Contributor

@dlam dlam commented Apr 22, 2021

No description provided.

@dlam dlam requested a review from ChrisCraik April 22, 2021 15:58
import kotlinx.coroutines.flow.scan
import kotlin.Error

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you have tests from when you were experimenting with this in the paging codebase?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do but it might take some time to adapt: https://android-review.googlesource.com/c/platform/frameworks/support/+/1591652/7/paging/common/src/main/kotlin/androidx/paging/MutableLoadStateCollection.kt

Let me leave this as a follow-up? I have a couple things on the queue I should probably do before migrating those tests

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@ChrisCraik ChrisCraik self-requested a review May 21, 2021 19:14
@dlam dlam merged commit 1a9305b into main May 21, 2021
@dlam dlam deleted the dlam/loadstate-helper branch May 21, 2021 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants