Reputation: 7505
We are migrating to WorkManager, the successor of android-priority-jobqueue library. How can we implement work grouping with WorkManager. We could achieve similar structure by using WorkContinuation but it required a reference to WorkRequest instead of synchronizing on the same string.
How can we implement work grouping/chaining using WorkManager?
Upvotes: 1
Views: 1134
Reputation: 155
You can follow this sample provided by Google. It contains a chain of image processing. All related Worker
is working under ImageOperations.java
as a chain of work.
Upvotes: 1
Reputation: 7505
Just found out that we can achieve this by using WorkManager.beginUniqueWork() method.
Upvotes: 1