[go: nahoru, domu]

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

[Question] How to cancel data loading? #9

Open
wafer-li opened this issue May 19, 2017 · 3 comments
Open

[Question] How to cancel data loading? #9

wafer-li opened this issue May 19, 2017 · 3 comments

Comments

@wafer-li
Copy link

There is always the case: the user could not torrent the slow data loading process, and want to cancel it.

But in the sample project, I cannot find there is any method to meet that demand.

So, is there any way to achieve that goal?

The cancel data loading means:
When the user perform the cancel action, such as onBackPressed, the NetworkBoundResource need to cancel the ongoing db loading transaction and the network request

@JoseAlcerreca
Copy link
Contributor

wafer-li: could you please open another bug for the crash and keep this issue about your question?

@wafer-li
Copy link
Author

@JoseAlcerreca
I just thought the reason of that bug might relate to the limitation(cannot cancel data-loading).

I will do it right away

@codeparams
Copy link

I made a sample app that includes canceling (also my 1st github project). Check it out: github and blog. It's similar to github browser sample but doesn't use NetworkBoundResource and LiveDataCallAdapterFactory.

recker115 pushed a commit to recker115/architecture-components-samples that referenced this issue Nov 12, 2019
 Fixes all initial calls to start() from fragments to viewmodels
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

No branches or pull requests

4 participants
@JoseAlcerreca @wafer-li @codeparams and others