WAI
Status Update
Comments
il...@google.com <il...@google.com> #2
my...@gmail.com <my...@gmail.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 1cb6e0067fb2ccd9cf46557bf14cf2e28149bca3
Author: Rahul Ravikumar <rahulrav@google.com>
Date: Tue Jan 15 14:24:59 2019
WorkerWrapper ensures that work which has been backed off runs per schedule.
Test: Added unit tests.
Change-Id: Iadb5fc47f021783c692167af23dba9564e96c244
Fixes: b/122881597
M work/workmanager/src/androidTest/java/androidx/work/impl/WorkerWrapperTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkerWrapper.java
https://android-review.googlesource.com/873094
Branch: androidx-master-dev
commit 1cb6e0067fb2ccd9cf46557bf14cf2e28149bca3
Author: Rahul Ravikumar <rahulrav@google.com>
Date: Tue Jan 15 14:24:59 2019
WorkerWrapper ensures that work which has been backed off runs per schedule.
Test: Added unit tests.
Change-Id: Iadb5fc47f021783c692167af23dba9564e96c244
Fixes:
M work/workmanager/src/androidTest/java/androidx/work/impl/WorkerWrapperTest.java
M work/workmanager/src/main/java/androidx/work/impl/WorkerWrapper.java
ra...@cubera.ch <ra...@cubera.ch> #4
In examples 2 and 3 wouldn't repeatOnLifecycle
continue to be executed every time the lifecycle state gets to STARTED
, even after isComplete
has been set to true
? Is there no way to tell the repeatOnLifecycle function that it can stop repeating?
il...@google.com <il...@google.com> #5
Re launch
to cancel the whole code block if you want. Obviously that only works well if you are doing a naive all or nothing approach and not something where you are check-pointing at multiple points in your suspending block.
vi...@gmail.com <vi...@gmail.com> #6
Comment has been deleted.
vi...@gmail.com <vi...@gmail.com> #7
Comment has been deleted.
ag...@gmail.com <ag...@gmail.com> #8
Comment has been deleted.
ed...@gmail.com <ed...@gmail.com> #9
Seeing that the `launchWhenX` APIs will soon be deprecated, maybe it would a good idea to update the documentation at: https://developer.android.com/topic/libraries/architecture/coroutines#suspend .
Cause it might get confusing for people finding that documentation page and then being told that it's gonna be deprecated.
Cause it might get confusing for people finding that documentation page and then being told that it's gonna be deprecated.
Description
Component used: lifecycle
Version used: 2.6.0-beta01
Devices/Android versions reproduced on: N/A
launchWhenX
APIs are being deprecated. However, I do not see an alternative for running one-time suspend code.repeatOnLifecycle
does not match "one-time" andwithX
does not support suspend functions.