tachiyomi/app
Two-Ai 4635e58405
Simplify PageHolder load Job (#9086)
Inline statusJob into loadJob, using supervisorScope to load the page
and track status changes in parallel.
- supervisorScope does not complete until both the child loadPage
  coroutine and statusFlow.collectLatest have completed.
- Cancelling supervisorScope cancels the child loadPage coroutine and
  statusFlow.collectLatest.
- Use supervisorScope instead of coroutineScope to let status
  collection continue if loadPage fails.

Inline progressJob into loadJob, using collectLatest's cancellation
to avoid cancelling the progressFlow collection explicitly.
- collectLatest cancels the previous action block when the flow
  emits a new value. This means the DOWNLOAD_IMAGE
  progressFlow.collectLatest gets automatically cancelled when
  statusFlow emits a new state.

Convert launchLoadJob to suspend function, move job launch to caller,
and rename as loadPageAndProcessStatus.
2023-02-15 22:24:55 -05:00
..
src Simplify PageHolder load Job (#9086) 2023-02-15 22:24:55 -05:00
.gitignore Move google-services.json 2020-04-29 17:56:05 -04:00
build.gradle.kts Rework on the wheel picker (#8559) 2023-02-12 23:10:47 -05:00
proguard-android-optimize.txt Adjust R8 optimization configs to fix extension issues 2022-05-26 19:41:43 -04:00
proguard-rules.pro Update Proguard rules to handle serializers in all modules 2022-10-01 10:47:45 -04:00
shortcuts.xml Remove more unused strings 2021-05-30 11:10:16 -04:00